Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
RS232 failed, when doing system simulation
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-22-2008 07:01 PM
I use EDK9.2 for a system simulation of the simplest system (microblaze, RS232, and etc) with BSP wizard.
I failed to let "fpga_0_RS232_DCE_TX_pin" of FPGA work by running the following code
print("--Enter main()--");
the output TX pin of RS232 wrapper is always high. I check the system_int.vhd file, and it has instruction data for initialize the BRAM instance.
Anyone could help me on this?
Thank you !
0
Re: RS232 failed, when doing system simulation
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-22-2008 11:20 PM
Hi,
What's the Baud rate of your RS232? Did you wait long enough for the data come out of UART?
You might also try to inrease the Buad rate and add the UART internal fifo_dout signal to the wave window as shown in EDK tutorial.
--XF
0
Re: RS232 failed, when doing system simulation
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-23-2008 12:28 AM
Thank you very much.
The problem is the mb cpu do not run any instruction, the data and address of the plb bus keep 0. How can I make cpu work under in smiulation.
0
Re: RS232 failed, when doing system simulation
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-23-2008 01:01 AM
Hi,
Did you add the configuration statement to the test bench, as suggested in EDK Tutorial?
-XF
0
Re: RS232 failed, when doing system simulation
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-23-2008 07:04 AM
the system_init.vhd file which contains the system.configuration has already been complied with in the same work lib. The log of modelsim demonstrates this RAM initial configuration has already been carried on. What should I do to trigger the cpu to work. Thank you very much.
0
Re: RS232 failed, when doing system simulation
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-25-2008 05:57 AM
Hi,
If you managed to generate the simulation files for Modelsim you are already quite successful :)
If the program is supposed to run from BRAM (you can check that by looking at "Software->Linker Script Generator").
Just a simple sugestion: check that the MB is out of reset and that it has clock for simulation ...
The ILMB should change during normal instruction fetch so if this does not happen there is something wrong "before".
Did you fill-in the clock generation code in the system_tb.vhd/v ?
And the reset signal code ? (rst<='1', '0' after xxx ns;)
Cheers,
CRC
0
Re: RS232 failed, when doing system simulation
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-30-2008 11:15 PM
hi,
which version of modelsim do you use?
edk 9.2 supports just modelsim 6.1e (6.2e works too, but vopt takes a long time).
when i simulated with another version of modelsim (in my case 6.3c), there where no action at the bram - the mb got no code and nothing happend.
cheers,
mc
0
Re: RS232 failed, when doing system simulation
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-31-2008 01:51 AM
Hi,
There is a bug in Modelsim 6.3c which causes the BRAM to not be initialized.
Only use the supported version since this is what we test against and make sure that it works.
Modelsim 6.3c caused a lot of grief and some of the bugs can be removed by starting simulation with -novopt.
You can also try to update to Modelsim 6.3d since most of the issues are solved.











