G
Guy_Sweden
Guest
Hello there.
I am trying to simulate the vga interface wherein the data (pixel
information) is read and formatted and then put on the screen in order
to reproduce the picture which is stored in the form of consecutive
pixels in a SRAM.
one of the modules in the interface sends the address to the SRAM
which then sends it the data (pixel) at that mem location. And certain
operations are to be help until we have received the pixl from the
SRAM. Theres one module which then receives the data from the SRAM and
then reformats it before sending it to the electron RGB guns which
then generate the color according to the information in that data.
Now before burning it to an actual FPGA, i wanna test if all the
timing criteria are being met elsewhere.
So when the module (entity) sends the address to be sent out to the
SRAM, i want to generate a 16 bit vector in response and send that to
the input of the entity which expects the data on the input.
In order to do that i thought i cud use the following simple tcl
construct
if { [exa flg_addr_sent] == "1"} {
force -freeze data "0010101000010110"
}
where 'flg_addr_sent' is a signal which is turned high whenever the
address bits are sent and it is then turned low in the next clock
cycle. The 'data' signal is the signal which goes in to the input of
the entity which needs the pixel data.
for the purpose of testing only, i want a fixed data vector
("0010101000010110") to be sent to the screen.
However, when i use the do file and then simulate the test bench
containing all the component instantiations,
the data signal is never even changed...what could be going wrong
here?
To make it more clear, i type "vsim -d do-sim.do counters_TB.vhd"
and then all the requested signals are added
then i run it for 5us...but the signal 'data' didnt seemed to get
updated when the "flg_addr_sent" signal went high as can be seen from
the following screenshot i took :
http://picasaweb.google.com/aijazbaig1/WorkStuff/photo#5066235818306520466
id like to know if i cud modify something to give the correct stimulus
on the data signal when the flg_addr_sent signal is high?
hope to get some pointers from you,
regards,
Aijaz_
I am trying to simulate the vga interface wherein the data (pixel
information) is read and formatted and then put on the screen in order
to reproduce the picture which is stored in the form of consecutive
pixels in a SRAM.
one of the modules in the interface sends the address to the SRAM
which then sends it the data (pixel) at that mem location. And certain
operations are to be help until we have received the pixl from the
SRAM. Theres one module which then receives the data from the SRAM and
then reformats it before sending it to the electron RGB guns which
then generate the color according to the information in that data.
Now before burning it to an actual FPGA, i wanna test if all the
timing criteria are being met elsewhere.
So when the module (entity) sends the address to be sent out to the
SRAM, i want to generate a 16 bit vector in response and send that to
the input of the entity which expects the data on the input.
In order to do that i thought i cud use the following simple tcl
construct
if { [exa flg_addr_sent] == "1"} {
force -freeze data "0010101000010110"
}
where 'flg_addr_sent' is a signal which is turned high whenever the
address bits are sent and it is then turned low in the next clock
cycle. The 'data' signal is the signal which goes in to the input of
the entity which needs the pixel data.
for the purpose of testing only, i want a fixed data vector
("0010101000010110") to be sent to the screen.
However, when i use the do file and then simulate the test bench
containing all the component instantiations,
the data signal is never even changed...what could be going wrong
here?
To make it more clear, i type "vsim -d do-sim.do counters_TB.vhd"
and then all the requested signals are added
then i run it for 5us...but the signal 'data' didnt seemed to get
updated when the "flg_addr_sent" signal went high as can be seen from
the following screenshot i took :
http://picasaweb.google.com/aijazbaig1/WorkStuff/photo#5066235818306520466
id like to know if i cud modify something to give the correct stimulus
on the data signal when the flg_addr_sent signal is high?
hope to get some pointers from you,
regards,
Aijaz_