mirror of https://github.com/zachjs/sv2v.git
fix bare input signed declarations for inlined modules
This commit is contained in:
parent
2cc1f6e2dc
commit
1b2734324e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
module top;
|
||||
initial #1 $display("%b", 2'b11);
|
||||
endmodule
|
||||
Loading…
Reference in New Issue