3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-10 09:48:06 +00:00

verilog: indirect AST_CONCAT and AST_TO_UNSIGNED port connections

- AST_CONCAT and AST_TO_UNSIGNED are always unsigned, but may generate
  RTLIL that exclusively reference a signed wire.
- AST_CONCAT may also contain a memory write.
This commit is contained in:
Zachary Snow 2024-02-11 13:28:14 -05:00 committed by Emil Jiří Tywoniak
parent e8f8297e5d
commit f55fbb5803
6 changed files with 72 additions and 9 deletions

View file

@ -5,9 +5,11 @@ module producer(
endmodule
module top(
output logic [3:0] out
output logic [3:0] out0, out1
);
logic [3:0] v[0:0];
producer p(v[0]);
assign out = v[0];
logic [3:0] v[1:0];
producer p0(v[0]);
producer p1({v[1]});
assign out0 = v[0];
assign out1 = v[1];
endmodule