asic_verification_learner
Newbie level 3
- Joined
- May 10, 2013
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,313
Hi ,
i want to verify a DUT(total combinational logic) ,so i wrote a testcase like this
`timescale 1ps/1ps
......
......
initial
begin
input1 <= 3'b000 ;
input2 <= 3'b001 ;
input3 <= 3'b010 ;
#2
out_scoreboard = out_from_rtl ;
if(out_scoreboard != expected_output)
begin
$display("Testcase1 : fail");
$finish ;
end
At functional level , i think it is ok , but if i use the same testcase at gate level simulation , is this testcase works ?
because i don't know the exact delays ..
so i cannot expect the output after 2ps , output may come after 3ps ....
so , my doubt is , am i wrote the testcase in a correct way ?
is using the hash(#) delays in testbench/testcase is right ?
my intention is to write a testcase , that suits for functional verification and also for gate level verification .....
so how should i write a testcase ? to use at functional verification and at gate level verification without any modification
please say ..
Thanks in advance.
i want to verify a DUT(total combinational logic) ,so i wrote a testcase like this
`timescale 1ps/1ps
......
......
initial
begin
input1 <= 3'b000 ;
input2 <= 3'b001 ;
input3 <= 3'b010 ;
#2
out_scoreboard = out_from_rtl ;
if(out_scoreboard != expected_output)
begin
$display("Testcase1 : fail");
$finish ;
end
At functional level , i think it is ok , but if i use the same testcase at gate level simulation , is this testcase works ?
because i don't know the exact delays ..
so i cannot expect the output after 2ps , output may come after 3ps ....
so , my doubt is , am i wrote the testcase in a correct way ?
is using the hash(#) delays in testbench/testcase is right ?
my intention is to write a testcase , that suits for functional verification and also for gate level verification .....
so how should i write a testcase ? to use at functional verification and at gate level verification without any modification
please say ..
Thanks in advance.