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

Reply

VHDL - test bench

 
Thread Tools Search this Thread
Old 05-24-2008, 07:32 PM   #1
Default test bench


i need to write an test bench for this waveforms


for now i hav writed this:
Quote:
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;

ENTITY circuitoX IS
PORT(A,B,C: IN BIT; Y:OUT BIT);
END circuitoX;

ARCHITECTURE testbench_arch OF circuitoX IS
SIGNAL A,B,C,Y : BIT;
BEGIN
A<='1'; -- dont now how to define it (looks like an clock)
B<='0','1' AFTER 20 ns,'0' AFTER 60 ns;
C<='0','1' AFTER 40 ns,'0' AFTER 80 ns;
Y<=???? AFTER ?? ns; --i have no idea of what will be the out
END testbench_arch;
can somebody give me tips concerning this code
I am with problems for the A entrance that seems to be one clock and for the exit Y which i have no idea what will be

perhaps it can use this for the A
Quote:
case A is
when '0' => A <= '1' AFTER 10 ns
when '1' => A <= '0' AFTER 10 ns
end case;


predador
predador 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set clock in xilinx test bench shyams82 Software 0 09-24-2008 05:51 PM
Get Your Work Bench Organized bigal Hardware 5 06-14-2006 09:31 AM
Latest Tech Fiasco... Ghost A+ Certification 30 01-09-2004 12:15 PM




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