[SOLVED] How to give two different values to a reg in testbench?

Status
Not open for further replies.

krishna2728

Member level 5
Joined
Oct 23, 2010
Messages
84
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,298
Location
bengaluru,India
Activity points
1,734
Hii Frnds,
i have to change a reg value ,but its taking the second value evry time and ignoring the first one as i have to check first value then the reg value must change as in the example

#25 REQA_WUPA_flag=1'b1;pcd_command=128'h26;
#100 ACCL_flag=1'b1;pcd_command=128'h2093;

as shown pcd_command value must be first 26 then when the accl_flag is high then it must be 2093

thank you in advance
 

You should pull up the waveform viewer to see whats happening at #25? Which means check the REQA flag and the value of pcd_command.

This should help you.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…