diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-05-02 11:25:34 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-05-02 11:25:34 -0700 |
commit | 8829cba9016fb43ba393eeff887e7788abaec242 (patch) | |
tree | a44171fe85cc41197ee834daa34ee545b4b49473 /tests | |
parent | 95867109ea4201d77a95a22f51cd3c4309ff8240 (diff) | |
parent | b515fd2d25851c90c9a0b08414c5ea5edeb916a0 (diff) | |
download | yosys-8829cba9016fb43ba393eeff887e7788abaec242.tar.gz yosys-8829cba9016fb43ba393eeff887e7788abaec242.tar.bz2 yosys-8829cba9016fb43ba393eeff887e7788abaec242.zip |
Merge remote-tracking branch 'origin/clifford/pmgenstuff' into xc7mux
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple/peepopt.v | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/simple/peepopt.v b/tests/simple/peepopt.v new file mode 100644 index 000000000..b27b9fe57 --- /dev/null +++ b/tests/simple/peepopt.v @@ -0,0 +1,9 @@ +module peepopt_shiftmul_0 #(parameter N=3, parameter W=3) (input [N*W-1:0] i, input [$clog2(N)-1:0] s, output [W-1:0] o); +assign o = i[s*W+:W]; +endmodule + +module peepopt_muldiv_0(input [1:0] i, output [1:0] o); +wire [3:0] t; +assign t = i * 3; +assign o = t / 3; +endmodule |