diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/arch/ecp5/bug1598.ys | 16 | ||||
| -rw-r--r-- | tests/arch/ice40/bug1598.ys | 16 | ||||
| -rw-r--r-- | tests/arch/xilinx/bug1598.ys | 16 | 
3 files changed, 48 insertions, 0 deletions
diff --git a/tests/arch/ecp5/bug1598.ys b/tests/arch/ecp5/bug1598.ys new file mode 100644 index 000000000..1d1682fcd --- /dev/null +++ b/tests/arch/ecp5/bug1598.ys @@ -0,0 +1,16 @@ +read_verilog <<EOT +module led_blink ( +        input clk, +        output ledc +    ); +  +    reg [6:0] led_counter = 0; +    always @( posedge clk ) begin +            led_counter <= led_counter + 1; +    end +    assign ledc = !led_counter[ 6:3 ]; +  +endmodule +EOT +proc +equiv_opt -assert -map +/ecp5/cells_sim.v synth_ecp5 -abc9 diff --git a/tests/arch/ice40/bug1598.ys b/tests/arch/ice40/bug1598.ys new file mode 100644 index 000000000..8438cb979 --- /dev/null +++ b/tests/arch/ice40/bug1598.ys @@ -0,0 +1,16 @@ +read_verilog <<EOT +module led_blink ( +        input clk, +        output ledc +    ); +  +    reg [6:0] led_counter = 0; +    always @( posedge clk ) begin +            led_counter <= led_counter + 1; +    end +    assign ledc = !led_counter[ 6:3 ]; +  +endmodule +EOT +proc +equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 -abc9 diff --git a/tests/arch/xilinx/bug1598.ys b/tests/arch/xilinx/bug1598.ys new file mode 100644 index 000000000..1175380b1 --- /dev/null +++ b/tests/arch/xilinx/bug1598.ys @@ -0,0 +1,16 @@ +read_verilog <<EOT +module led_blink ( +        input clk, +        output ledc +    ); +  +    reg [6:0] led_counter = 0; +    always @( posedge clk ) begin +            led_counter <= led_counter + 1; +    end +    assign ledc = !led_counter[ 6:3 ]; +  +endmodule +EOT +proc +equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx -abc9  | 
