Commit 1b273432 by Zachary Snow

fix bare input signed declarations for inlined modules

parent 2cc1f6e2
......@@ -11,6 +11,8 @@
* Fixed `--write path/to/dir/` with directives like `` `default_nettype ``
* Fixed `logic` incorrectly converted to `wire` even when provided to a task or
function output port
* Fixed `input signed` ports of interface-using modules producing invalid
declarations after inlining
* Fixed `` `resetall `` not resetting the `` `default_nettype ``
### Other Enhancements
......
......@@ -633,8 +633,7 @@ inlineInstance global ranges modportBindings items partName
removeDeclDir (Variable _ t x a e) =
Variable Local t' x a e
where t' = case t of
Implicit Unspecified rs ->
IntegerVector TLogic Unspecified rs
Implicit sg rs -> IntegerVector TLogic sg rs
_ -> t
removeDeclDir decl@Net{} =
traverseNetAsVar removeDeclDir decl
......
module top;
intf i();
mod m(i, 1'b1);
initial #1 $display("%b", i.y);
endmodule
module mod(
input intf i,
input signed x
);
initial i.y = x;
endmodule
interface intf;
logic [1:0] y;
endinterface
module top;
initial #1 $display("%b", 2'b11);
endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment