Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
samio4762
Posts: 3
Registered: ‎01-22-2008
0

RS232 failed, when doing system simulation

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 ! 
Xilinx Employee
xiaofeip
Posts: 414
Registered: ‎08-07-2007
0

Re: RS232 failed, when doing system simulation

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
Visitor
samio4762
Posts: 3
Registered: ‎01-22-2008
0

Re: RS232 failed, when doing system simulation

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.
Xilinx Employee
xiaofeip
Posts: 414
Registered: ‎08-07-2007
0

Re: RS232 failed, when doing system simulation

Hi,
 
Did you add the configuration statement to the test bench, as suggested in EDK Tutorial?
 
-XF
Visitor
samio4762
Posts: 3
Registered: ‎01-22-2008
0

Re: RS232 failed, when doing system simulation

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.
Visitor
cciressan
Posts: 16
Registered: ‎01-04-2008
0

Re: RS232 failed, when doing system simulation

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
Regular Visitor
mcattack
Posts: 19
Registered: ‎10-16-2007
0

Re: RS232 failed, when doing system simulation

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
Xilinx Employee
goran
Posts: 722
Registered: ‎08-06-2007
0

Re: RS232 failed, when doing system simulation

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.