J
JoshforRefugee
Guest
I have a interface defined like this
interface my_if (input bit clk);
bit valid;
clocking clk_bg @(posedge clk);
output valid;
endclocking;
function void write(bit in_value)
valid = in_value; ???? SHOULD I USE BLOCKING ON NON-BLOCKING
HERE?????
endfunction;
modport mp (clocking clk_bg, import write);
endinterface: my_if
Should I use blocking or non-blocking statment in my write task? and
why? thank you.
interface my_if (input bit clk);
bit valid;
clocking clk_bg @(posedge clk);
output valid;
endclocking;
function void write(bit in_value)
valid = in_value; ???? SHOULD I USE BLOCKING ON NON-BLOCKING
HERE?????
endfunction;
modport mp (clocking clk_bg, import write);
endinterface: my_if
Should I use blocking or non-blocking statment in my write task? and
why? thank you.