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.

[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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top