aboutsummaryrefslogtreecommitdiffstats
path: root/tests/arch/ecp5
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-12-30 10:01:02 -0800
committerGitHub <noreply@github.com>2019-12-30 10:01:02 -0800
commitc2c74f9bb001bba026270a6c218fc462aeaac6c2 (patch)
tree8e6ef83072f31e07bb45d503e840611350ab66be /tests/arch/ecp5
parentce6e4f6341b90f68ea42120b5a0bfb34c586633c (diff)
parentd45869855c6fc86dc6a0225018a8e383866dacb4 (diff)
downloadyosys-c2c74f9bb001bba026270a6c218fc462aeaac6c2.tar.gz
yosys-c2c74f9bb001bba026270a6c218fc462aeaac6c2.tar.bz2
yosys-c2c74f9bb001bba026270a6c218fc462aeaac6c2.zip
Merge pull request #1599 from YosysHQ/eddie/retry_1588
Retry #1588 -- "write_xaiger: only instantiate each whitebox cell type once"
Diffstat (limited to 'tests/arch/ecp5')
-rw-r--r--tests/arch/ecp5/bug1598.ys16
1 files changed, 16 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