Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Tesbench loop (Run through all address/data line combinations)

 
Thread Tools Search this Thread
Old 12-01-2008, 12:11 PM   #1
Default Tesbench loop (Run through all address/data line combinations)


I have asked a similar question allready on this forum but got no replies yet.
So I thought I think i should rephrase my question.

I have the following process inside a test bench (See below after dottted line).
Basically my VHDL code describes a Dual port RAM.
The test bench process:Writes data with C side and reads with L side, this seems to work.
But as you can imagine 2^5 Address line = 32 cominations * *-bit data = 512 bits memory locations.
My question is how can I optimize my testbench process so that It runs through all Address and data combinations????
Intead of making 512 different situations????
------------------------------------------------------------
tb : PROCESS
BEGIN

--C_SIDE write DATA:

C_ADDRESS <= "00001"; --Address
C_DATA_UB <= "00000000"; --Data upper byte
C_DATA_LB <= "00000000"; --Data lower byte
C_CS <= '0'; --Chip select
C_WE <= '0'; --Write enable
C_UBE <= '0'; --Upper byte enable
C_LBE <= '0'; --Lower byte enable
wait for 200 ns; --Write pulse length

--L_SIDE read DATA:

L_ADDRESS <= "00001"; --Address
L_CS <= '0'; --Chip select
L_OE <= '0'; --Output enable (Read)
wait for 200 ns; --Read pulse length


END PROCESS;
--------------------------------------------------------------------


Daryl
Daryl is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46