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.

How to write a test bench to test the 8*8 multiplier?

Status
Not open for further replies.

haneet

Full Member level 3
Joined
Nov 7, 2006
Messages
160
Helped
14
Reputation
28
Reaction score
1
Trophy points
1,298
Activity points
2,219
guyz do u have any idea how can we write a test bench to test the 8*8 multiplier with all the possible cases without writing them manually...

thanks,
 

regarding test bench

do u know how many test inputs will come for 2 * 2 multiplier? 16 combinations. Then for 8 bit multiplier... Very large number...It will take u many days to write all the cases without missing..

The best way is to do the random test bench... use $random(f) function


Regards
Deepak
 

Re: regarding test bench

deepu,
thatz the reason i am asking for some way to write a code which will test all cases.
Will $random work in VHDL?? I am working on VHDL of Modelsim.
I know that in Verilog you can run a for loop to generate all the cases but in the case of VHDL i am not sure if we can do...

thanks,
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top