diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-12-09 11:48:28 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-12-09 11:48:28 -0800 |
commit | e05372778a26e5cbc5166f208eddc6a1b42ed198 (patch) | |
tree | 3eb2cbc02e2202554f3ac76f40a3dd5f81a07fb0 /tests/arch/ice40/wrapcarry.ys | |
parent | 946d5854c0b2e63a3757a0fbdf41276255967bc8 (diff) | |
download | yosys-e05372778a26e5cbc5166f208eddc6a1b42ed198.tar.gz yosys-e05372778a26e5cbc5166f208eddc6a1b42ed198.tar.bz2 yosys-e05372778a26e5cbc5166f208eddc6a1b42ed198.zip |
ice40_wrapcarry to really preserve attributes via -unwrap option
Diffstat (limited to 'tests/arch/ice40/wrapcarry.ys')
-rw-r--r-- | tests/arch/ice40/wrapcarry.ys | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/arch/ice40/wrapcarry.ys b/tests/arch/ice40/wrapcarry.ys deleted file mode 100644 index 579335b27..000000000 --- a/tests/arch/ice40/wrapcarry.ys +++ /dev/null @@ -1,52 +0,0 @@ -read_verilog <<EOT -module top(input A, B, CI, output O, CO); - SB_CARRY carry ( - .I0(A), - .I1(B), - .CI(CI), - .CO(CO) - ); - SB_LUT4 #( - .LUT_INIT(16'b 0110_1001_1001_0110) - ) adder ( - .I0(1'b0), - .I1(A), - .I2(B), - .I3(1'b0), - .O(O) - ); -endmodule -EOT - -ice40_wrapcarry -select -assert-count 1 t:$__ICE40_CARRY_WRAPPER - -design -reset -read_verilog <<EOT -module top(input A, B, CI, output O, CO); - (* foo = "bar", answer = 42, keep=0 *) - SB_CARRY carry ( - .I0(A), - .I1(B), - .CI(CI), - .CO(CO) - ); - (* keep, blah="blah", answer = 43 *) - SB_LUT4 #( - .LUT_INIT(16'b 0110_1001_1001_0110) - ) adder ( - .I0(1'b0), - .I1(A), - .I2(B), - .I3(1'b0), - .O(O) - ); -endmodule -EOT - -ice40_wrapcarry -select -assert-count 1 t:$__ICE40_CARRY_WRAPPER -select -assert-count 0 t:* t:$__ICE40_CARRY_WRAPPER %d -select -assert-count 1 a:foo=bar a:answer=42 %i a:keep=1 %i a:blah=blah %i -techmap -map +/ice40/cells_map.v -#TODO: Check unwrapped attributes |