J
Jason Zheng
Guest
Just when I thought I've known enough about Verilog-95 behaviors,
something else opened my eyes. Here's the code:
task tskBlah;
input a;
input b;
integer a;
integer b;
begin
do something with a and b;
end
endtask
In my past experience, I have always been under the impression that a
and b are effectively declared as single-bit vectors by the input
line regardless of the integer declaration. But the simulators have
proved me wrong. A and B are indeed recognized as full width
integers within the body of this task. Can any Verilog language guru
comment on this? Can you do the same with module declarations?
~Zheng
something else opened my eyes. Here's the code:
task tskBlah;
input a;
input b;
integer a;
integer b;
begin
do something with a and b;
end
endtask
In my past experience, I have always been under the impression that a
and b are effectively declared as single-bit vectors by the input
line regardless of the integer declaration. But the simulators have
proved me wrong. A and B are indeed recognized as full width
integers within the body of this task. Can any Verilog language guru
comment on this? Can you do the same with module declarations?
~Zheng