testbench question

S

Salman

I need to generate a data packets of 16-bit data that is random in
value and varies between various lengths per packet and also can be
from 8 different sources. How should I write it in VHDL? Using a
procedure, function or a bus functional model? Any good examples?
 
M

Mike Treseler

Salman said:
I need to generate a data packets of 16-bit data that is random in
value and varies between various lengths per packet and also can be
from 8 different sources. How should I write it in VHDL?

With an editor and vhdl simulator.
Using a procedure, function or a bus functional model?
yes yes maybe

Any good examples?

Not exactly, but the testbench here:
http://home.comcast.net/~mike_treseler/
generates random bytes and shifts them out uart style.
The functions randomize and loopback_mux might be
of interest.

-- Mike Treseler
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top