3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-22 13:41:27 +00:00

Fix reset_auto_counter_id to correctly detect _NNN_ patterns

This fixes a regression caused by commit c4c389fdd7.
This commit is contained in:
Robert O'Callahan 2025-11-17 09:11:15 +00:00
parent 677bf21947
commit b870693393
2 changed files with 22 additions and 5 deletions

View file

@ -0,0 +1,17 @@
read_verilog -sv <<EOT
module arithmetic (
input logic [7:0] _0_,
input logic [7:0] _1_,
output logic [7:0] _2_,
);
assign _2_ = _0_ + _1_;
endmodule : arithmetic
EOT
hierarchy
techmap
write_verilog reset_auto_counter.v
! ! grep -qE '_0+0_' reset_auto_counter.v
! ! grep -qE '_0+1_' reset_auto_counter.v
! ! grep -qE '_0+2_' reset_auto_counter.v