UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor anp
Visitor
5,146 Views
Registered: ‎04-28-2009

XMD/Instruction Set Simulator (ISS) error with Microblaze and xps_timer

Jump to solution

I would like to perform execution time estimates on the Microblaze softcore, and have planned to do this by using XMD with the instruction set simulator. I did:

 

1) Build a base system in XPS with Microblaze processor (no cache, 64 kb memory), xps_timer and interrupt controller

1.1)  Generate netlist and bitstream

 

2) Create a SW project with the code

 

#include "xparameters.h"
#include "xtmrctr.h"

XTmrCtr XPS_Timer;
Xuint32 startTime,finishTime,execTime;

int main() {
XTmrCtr_Initialize(& XPS_Timer, XPAR_XPS_TIMER_1_DEVICE_ID);
XTmrCtr_SetResetValue(& XPS_Timer, XPAR_TMRCTR_0_DEVICE_ID, 0x00000000);
XTmrCtr_Reset(& XPS_Timer, XPAR_TMRCTR_0_DEVICE_ID);

startTime=XTmrCtr_GetValue(& XPS_Timer, XPAR_TMRCTR_0_DEVICE_ID);
XTmrCtr_Start(& XPS_Timer, XPAR_TMRCTR_0_DEVICE_ID);

// Code to test

XTmrCtr_Stop(& XPS_Timer, XPAR_TMRCTR_0_DEVICE_ID);
finishTime=XTmrCtr_GetValue(& XPS_Timer, XPAR_TMRCTR_0_DEVICE_ID);

execTime=finishTime-startTime;

return 0;
}

  

2.1) Build application

3) Select XMD d
ebug options to "Simulator"

 

4) Start XMD

4.1) Download bitstream ("dow executable.elf")

4.2) Set breakpoint ("bps exit")

4.3) Run ("run")

 

I get the error:

 

RUNNING> XMD% D-OPB timed out for address: 0, PC: 834
This could arise due to any of the following reasons:
1. program accessing invalied memory
2. no peripheral mapped at the requested address
3. ISS error

This puzzles me as there is no OPB in my design. (I am aware that OPB is not supported for XMD/ISS)

 

The error occurs only when I use the XTmr functions, if I remove them the code executes fine.


Is it impossible to use a xps_timer in the instruction set simulator
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor stone9502
Visitor
5,654 Views
Registered: ‎07-31-2009

Re: XMD/Instruction Set Simulator (ISS) error with Microblaze and xps_timer

Jump to solution

I am thinking maybe that's because the ISS, which doesn't support peripheral. When the program try to access the timer, it issue a time out error.

 

 

0 Kudos
3 Replies
Visitor stone9502
Visitor
4,814 Views
Registered: ‎07-31-2009

Re: XMD/Instruction Set Simulator (ISS) error with Microblaze and xps_timer

Jump to solution

I met the same problem with you.

 

I didn't use OPB in my design at all. It seems the simulator assume the timer use OPB instead of PLB  and the processor get no response from the OPB bus so encounter an error.

 

is that right?

 

stone

0 Kudos
Highlighted
Visitor stone9502
Visitor
5,655 Views
Registered: ‎07-31-2009

Re: XMD/Instruction Set Simulator (ISS) error with Microblaze and xps_timer

Jump to solution

I am thinking maybe that's because the ISS, which doesn't support peripheral. When the program try to access the timer, it issue a time out error.

 

 

0 Kudos
Visitor anp
Visitor
4,129 Views
Registered: ‎04-28-2009

Re: XMD/Instruction Set Simulator (ISS) error with Microblaze and xps_timer

Jump to solution

Yes, sorry for the long delay of the answer.

 

I have come to the same conclusion. ISS must see the xps_timer as a peripheral, thus it won't work. I have changed the setup to run MDM on a dev. board and load the elf-files with xmd. Then I can access the timer and other peripherals.

0 Kudos