12-20-2013 07:23 AM
I created MicroBlaze MCS core with coregen and created elf file using SDK. The source code of the C program controls GPO lines and is the copied from a tutorial I found from websearch. It is on page 11.
Then I ran the tcl script to create bram files. Then I created testbench which provide clk signal and input to GPI lines and ran behavioral simulation hoping I can see the GPO line changes. ISim ran and started simulation but the GPO signals didn't change. One thing I noticed was when ISim starts, it tries to delete all previous simulation files including bram files. So I got error message that ISim cannot load bram files. I worked around this problem by running tcl scripts again (microblaze_mcs_data2mem command) and pushing Relaunch button on ISim. But still no change on GPO lines.
Is there anyone who tried to simulate MicroBlaze MCS and the program using ISim?
01-27-2014 11:28 AM
02-14-2014 11:23 AM
Sorry for bringing this old topic up, but I have exactly the same problem as leofr discribed and I cant solve it. I tried running the script and it seams that generated files are ok, but I can not add them to project as simulation sources (as discribed in pdf). Options are:
This is what I did:
1) Created new ISE project
2) Added Microblaze MCS and configured it
3) Made a top level hdl file and instantiated the MB core in it
4) Ran synthesis, all runns smooth
5) Created new board support package for ISE my specific project
6) Created C file with code and got .elf file
7) Ran this costume script and got 4 .mem files + disassembled text
8) Added generated .mem files in ISE, but could not associate with simulation...
I also tried running data2mem, I got .mem files, but still I cant add them as simulation sources.
03-02-2014 05:20 AM
I solved my problem!
In step 5, where I created BSP, I added wrong xml file. The file that should be added is component-name_sdk.xml but I added component -name.xml which resulted incorrect BSP and no output in Isim simulation.
09-18-2014 04:19 AM
I have the same problem with not being able to set the ram files as simulation.
I have use the correctsdk.xml file.
Were you able to set the ram files as simulation or did it just work without doing that?
Thnaks for any help
11-02-2014 02:21 PM
Hello! The behavior simulation works well with your method, thanks!
Have you also tried the post place-route simulation? I have not figured out the solution to port the elf file's information to the Post Place-Route Model generated in ISE.