diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-01-17 16:08:04 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-01-17 16:08:04 -0800 |
commit | db68e4c2a7a39eda46863fba8b8c8313a831f606 (patch) | |
tree | d969a7e9f4638036ea791f68255b61986261c511 /tests/arch | |
parent | e17f3f8c63603746ad3aa33e9900d91e9b86db39 (diff) | |
download | yosys-db68e4c2a7a39eda46863fba8b8c8313a831f606.tar.gz yosys-db68e4c2a7a39eda46863fba8b8c8313a831f606.tar.bz2 yosys-db68e4c2a7a39eda46863fba8b8c8313a831f606.zip |
ice40_dsp: fix typo
Diffstat (limited to 'tests/arch')
-rw-r--r-- | tests/arch/xilinx/xilinx_dsp.ys | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/arch/xilinx/xilinx_dsp.ys b/tests/arch/xilinx/xilinx_dsp.ys new file mode 100644 index 000000000..3b9f52930 --- /dev/null +++ b/tests/arch/xilinx/xilinx_dsp.ys @@ -0,0 +1,11 @@ +read_verilog <<EOT +module top(input [24:0] a, input [17:0] b, output [42:0] o1, o2, o5); +DSP48E1 m1 (.A(a), .B(16'd1234), .P(o1)); +assign o2 = a * 16'd0; +wire [42:0] o3, o4; +DSP48E1 m2 (.A(a), .B(b), .P(o3)); +assign o4 = a * b; +DSP48E1 m3 (.A(a), .B(b), .P(o5)); +endmodule +EOT +xilinx_dsp |