legendbb
Member level 1
I was attempting to use inout port inside interface with task in manipulating the inout signal.
But I can only get inout signal to update correctly, only if it's included inside port list of the interface.
ioSig updates correctly when task is called:
ioSig fails to update:
What am I missing?
Thanks for any comments,
:?:
But I can only get inout signal to update correctly, only if it's included inside port list of the interface.
ioSig updates correctly when task is called:
Code:
interface my_if(inout wire ioSig)
assign ioSig = (sigEn == 1'b0) ? 1'b1 : 1'0;
...
task my_task;
...
begin
#10ns
sigEn = 1'b0;
...
ioSig fails to update:
Code:
interface my_if(...)
wire sigEn;
assign ioSig = (sigEn == 1'b0) ? 1'b1 : 1'0;
...
task my_task;
...
begin
#10ns
sigEn = 1'b0; // I've single step over here, no update on assign statement
...
What am I missing?
Thanks for any comments,
:?: