From 41a7d4bb819c715cc428a482b938315f68c6b358 Mon Sep 17 00:00:00 2001 From: Anhijkt Date: Wed, 9 Apr 2025 21:21:46 +0300 Subject: [PATCH] ice40_dsp: add test --- tests/arch/ice40/ice40_dsp_const.ys | 80 +++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 tests/arch/ice40/ice40_dsp_const.ys diff --git a/tests/arch/ice40/ice40_dsp_const.ys b/tests/arch/ice40/ice40_dsp_const.ys new file mode 100644 index 000000000..c9c76a1ac --- /dev/null +++ b/tests/arch/ice40/ice40_dsp_const.ys @@ -0,0 +1,80 @@ +read_verilog << EOT +module top(input wire [14:0] a, output wire [18:0] b); +assign b = a*$unsigned(5'b01111); +endmodule +EOT + +prep +ice40_dsp + +read_verilog << EOT +module ref(a, b); + wire _0_; + wire _1_; + wire _2_; + wire [12:0] _3_; + (* src = "<