diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-06-08 15:12:08 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-06-08 15:12:08 +0200 |
commit | 23a79730945f2a0e2cc61a2d6a37281dff4be81d (patch) | |
tree | 2aaae75ae63fdc850c6a10053d42be4c0f58ff0b /passes/sat/example.v | |
parent | 92f04eab106ec10fe9b1d154e7e61dd017a2f145 (diff) | |
download | yosys-23a79730945f2a0e2cc61a2d6a37281dff4be81d.tar.gz yosys-23a79730945f2a0e2cc61a2d6a37281dff4be81d.tar.bz2 yosys-23a79730945f2a0e2cc61a2d6a37281dff4be81d.zip |
Added support for shifter cells to SAT generator
Diffstat (limited to 'passes/sat/example.v')
-rw-r--r-- | passes/sat/example.v | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/passes/sat/example.v b/passes/sat/example.v index 9e8c94b73..aa0ddb6e3 100644 --- a/passes/sat/example.v +++ b/passes/sat/example.v @@ -51,7 +51,20 @@ endmodule // ------------------------------------ -module example003(clk, rst, y); +module example003(a_shl, a_shr, a_sshl, a_sshr, sh, y_shl, y_shr, y_sshl, y_sshr); + +input [7:0] a_shl, a_shr; +input signed [7:0] a_sshl, a_sshr; +input [3:0] sh; + +output [7:0] y_shl = a_shl << sh, y_shr = a_shr >> sh; +output signed [7:0] y_sshl = a_sshl <<< sh, y_sshr = a_sshr >>> sh; + +endmodule + +// ------------------------------------ + +module example004(clk, rst, y); input clk, rst; output y; @@ -59,7 +72,7 @@ output y; reg [3:0] counter; always @(posedge clk) - case (1) + case (1'b1) rst, counter == 9: counter <= 0; default: |