regarding interrupt signal.
in simulation the signal is goes high at 23599ps.
but in my compile log file it showing “Interrupt not Set”.
for this,piece of code in below:
bit intr;
.
.
.
.
.
if(intr)
`uvm_info(get_type_name(),"Interrupt Set",UVM_LOW)
else
`uvm_info(get_type_name(),"Interrupt not Set",UVM_LOW)
how can i solve this issue.?
thanks,
In reply to pullarao beerelli:
what time is the log file message? When is the code you show supposed to execute?
In reply to dave_59:
hi dave,
it is showing in compile file at 236070000ps. like below.
UVM_INFO …/ran/seq.sv(427) @ 236070000: uvm_test_top.env.ahb_env.ahb_agent.m_sqr@@h_init [init_seq] Interrupt not Set
in simulation intr happens at @ 235990000ps.
it supposed to execute at 235990000ps in log also.
bit intr;
.
.
.
.
.
if(intr)
`uvm_info(get_type_name(),"Interrupt Set",UVM_LOW)//supposed to execute this line.means intr happens in simulation.@ 235990000ps
else
`uvm_info(get_type_name(),"Interrupt not Set",UVM_LOW)//but it is executing this line.
thanks for replay,
In reply to pullarao beerelli:
Could you please explain the difference between ‘compile log’ and ‘simulation’.
Compiling the code does not execute the code.
Only in simulation the code will be executed.
BTW, what piece of code you are showing? Looks like it is a piece of your sequence, right?
In reply to chr_sue:
hi chr_sue,
i mean simulation = wave window.(waveform)
correct,that piece of code belongs to sequence.
i made sequence for interrupt signal.
am able to see that intr signal goes high at wave graphically.
but my uvm_info message showing Interrupt not Set.
thanks,
In reply to pullarao beerelli:
Waht do you display in the wave window? Is this the DUT internal signal?
Finally you cannot set the an internal signal from a sequence. This is your problem.
Your sequence data member intr is a 2 state varaibel. It is initalized to ‘0’. This explains your mismatch.