projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c462e5
)
Add peepopt_dffmuxext tests
author
Eddie Hung
<eddie@fpgeh.com>
Wed, 4 Sep 2019 19:34:44 +0000
(12:34 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Wed, 4 Sep 2019 19:34:44 +0000
(12:34 -0700)
tests/simple/peepopt.v
patch
|
blob
|
history
diff --git
a/tests/simple/peepopt.v
b/tests/simple/peepopt.v
index 1bf427897156afd9497f0715b70eb8d81d960e39..b4d113dbadf0779708f47b754513e1b271cfe068 100644
(file)
--- a/
tests/simple/peepopt.v
+++ b/
tests/simple/peepopt.v
@@
-11,3
+11,11
@@
wire [3:0] t;
assign t = i * 3;
assign o = t / 3;
endmodule
+
+module peepopt_dffmuxext_signed(input clk, ce, input signed [1:0] i, output reg signed [3:0] o);
+ always @(posedge clk) if (ce) o <= i;
+endmodule
+
+module peepopt_dffmuxext_unsigned(input clk, ce, input [1:0] i, output reg [3:0] o);
+ always @(posedge clk) if (ce) o <= i;
+endmodule