cnspy
Full Member level 3

try_get vmm
Hi, what's the difference between peek and get of vmm_channel?
I try to use the code like this:
in_chan.peek(tran_data);
do_read(tran_data);
in_chan.get(tran_data);
It works.
But if I try it like this:
in_chan.get(tran_data);
do_read(tran_data);
I think the simulation was blocked. So I don't know why.
Hi, what's the difference between peek and get of vmm_channel?
I try to use the code like this:
in_chan.peek(tran_data);
do_read(tran_data);
in_chan.get(tran_data);
It works.
But if I try it like this:
in_chan.get(tran_data);
do_read(tran_data);
I think the simulation was blocked. So I don't know why.