diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-11-07 22:20:00 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-11-07 22:20:00 +0100 |
commit | fc6dc0d7b8d3580df50558473c5d6365fd303191 (patch) | |
tree | a0a27650eaed7654dd6b43c12c6b87c7e531c38a /tests/simple | |
parent | d7cb62ac96c34a13707112718fe06353a4f34526 (diff) | |
download | yosys-fc6dc0d7b8d3580df50558473c5d6365fd303191.tar.gz yosys-fc6dc0d7b8d3580df50558473c5d6365fd303191.tar.bz2 yosys-fc6dc0d7b8d3580df50558473c5d6365fd303191.zip |
Fixed handling of power operator
Diffstat (limited to 'tests/simple')
-rw-r--r-- | tests/simple/constpower.v | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/simple/constpower.v b/tests/simple/constpower.v new file mode 100644 index 000000000..451866a63 --- /dev/null +++ b/tests/simple/constpower.v @@ -0,0 +1,15 @@ +module constpower(ys, yu); + +output [8*8*8-1:0] ys, yu; + +genvar i, j; + +generate + for (i = 0; i < 8; i = i+1) + for (j = 0; j < 8; j = j+1) begin:V + assign ys[i*8 + j*64 + 7 : i*8 + j*64] = $signed(i-4) ** $signed(j-4); + assign yu[i*8 + j*64 + 7 : i*8 + j*64] = $unsigned(i) ** $unsigned(j); + end +endgenerate + +endmodule |