Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

The importance of test benches in VHDL coding and rules for writing it

Status
Not open for further replies.

balakrishna

Newbie level 4
Joined
May 3, 2007
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,341
Now i am learning vhdl code writing.
Please tell me the importance of test benches in vhdl coding and the rules that have to follow to write test benches?
 

test benches

Try this book: Writing Testbenches, Functional Verification of HDL Models.
 

Re: test benches

The book recommended by gliss is definetely a must, even though is very oriented to Hardware Verification Languages.
VHDL and Verilog are Hardware Description Languages, so the aim of these languages is to write synthesizable code (even though they have some structures that are not synthesizable).
You can write basic testbenches with vhdl, that will be enough for small designs. The purpose of testbenches is to simulate situations that your design will face when it is synthesized, i.e. bus signals, timing constraints, etc.
 

Re: test benches

test benches alow you to put define the input of your design and when you run your simulation it will give results according to your input. Like when you want to simulate a counter you can define the cycle of your clock with a test bench file and run it. hope you understand
 

test benches

hi....
test benches are just models those are used to varify correctness of a HDL model so that u can compare o/p response with expected values.According to that timing information u can see wavforms in ur simulation.it is done before ur simulation.for more details read VLSI design by Dauglas Perry

regards,
shraddha
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top