Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Tesbench loop (Run through all address/data line combinations)

Reply
Thread Tools

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

 
 
Daryl Daryl is offline
Junior Member
Join Date: Nov 2008
Posts: 2
 
      12-01-2008
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;
--------------------------------------------------------------------
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Triple nested loop python (While loop insde of for loop inside ofwhile loop) Isaac Won Python 9 03-04-2013 10:08 AM
loop through each line in a text file qtrimble Python 6 03-01-2010 04:15 PM
Re: How to loop through a list while inside the loop, the list size may be decreased? Roedy Green Java 3 09-13-2008 01:51 AM
Loop through a text file line by line toomanyjoes@mail.utexas.edu Perl Misc 20 01-16-2005 07:37 PM
Loop through all dataadapters Vik ASP .Net 2 07-17-2003 02:04 PM



Advertisments