Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > test bench

Reply
Thread Tools

test bench

 
 
craigs2 craigs2 is offline
Junior Member
Join Date: Mar 2006
Posts: 3
 
      03-29-2006
chaps i have written the following code for a 16x12 RAM, but i now need to write a test bench, does anybody have anything i could use?

entity RAM16x12 is
port (address: in integer range 0 to 15;
Data: inout std_ulogic_vector(11 downto 0);
CS, WE, OE: in std_ulogic);
end entity RAM16x12;

architecture RTL of RAM16x12 is
begin
p0: process (address, CS, WE, OE) is
type ram_array is array (0 to 15) of
std_ulogic_vector(11 downto 0);
variable mem: ram_array;
begin
Data <= (others => 'Z');
if CS = '0' then
if OE = '0' then
Data <= mem(address);
elsif WE = '0' then
mem(address) := Data;
end if;
end if;
end process p0;
end architecture RTL;

thanks in advance

s
 
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
VHDL Test Bench + Help SneakerNet VHDL 3 03-03-2010 09:00 AM
NEWBIE TEST BENCH HELP? Massimiliano Bertei VHDL 4 01-20-2005 01:07 PM
How do I read binary file data in a test bench? Pete Fraser VHDL 4 11-04-2004 02:51 AM
Xilinx test bench and user group Joseph A. Zammit VHDL 3 04-21-2004 06:14 PM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments
 



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 47 48 49 50 51 52 53 54 55 56 57