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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…