diff options
author | Claire Wolf <clifford@clifford.at> | 2020-05-14 18:31:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 18:31:16 +0200 |
commit | 140e9a8e06284fcee0ed91661a794b960b5ec5ec (patch) | |
tree | e81783a62e0649cf8e8ed0eb22ad953a214ebe70 /tests | |
parent | ee0beb481db09e8faddf22109097649eac04486b (diff) | |
parent | 5be4b00a0dad4c6fe281a0e925daeae26715f215 (diff) | |
download | yosys-140e9a8e06284fcee0ed91661a794b960b5ec5ec.tar.gz yosys-140e9a8e06284fcee0ed91661a794b960b5ec5ec.tar.bz2 yosys-140e9a8e06284fcee0ed91661a794b960b5ec5ec.zip |
Merge pull request #2050 from YosysHQ/eddie/opt_clean_fixes
opt_clean: remove (* init *) regardless of -purge, remove (* init *) when consistent with sigmap, clean to behave identically
Diffstat (limited to 'tests')
-rw-r--r-- | tests/opt/opt_clean_init.ys | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/opt/opt_clean_init.ys b/tests/opt/opt_clean_init.ys new file mode 100644 index 000000000..0d567608d --- /dev/null +++ b/tests/opt/opt_clean_init.ys @@ -0,0 +1,13 @@ +logger -expect warning "Initial value conflict for \\y resolving to 1'0 but with init 1'1" 1 +logger -expect-no-warnings +read_verilog <<EOT +module top; +(* init=1'b0 *) wire w = 1'b0; +(* init=1'bx *) wire x = 1'b0; +(* init=1'b1 *) wire y = 1'b0; +(* init=1'b0 *) wire z = 1'bx; +endmodule +EOT +clean +select -assert-count 1 a:init +select -assert-count 1 w:y a:init %i |