diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-09-25 17:46:38 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-09-25 17:46:38 -0600 |
| commit | b5f43ef8431532b1e0b498a88072fdfd2cf81ac9 (patch) | |
| tree | eac985d217721ce4ef4b6e355cce611c9e4d3a82 /rtl/core/alu/shifter.sv | |
| parent | 72991c8eb6791111de0378cfc46ede8581d53e2a (diff) | |
Implement ALU
Diffstat (limited to 'rtl/core/alu/shifter.sv')
| -rw-r--r-- | rtl/core/alu/shifter.sv | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rtl/core/alu/shifter.sv b/rtl/core/alu/shifter.sv new file mode 100644 index 0000000..3effb2c --- /dev/null +++ b/rtl/core/alu/shifter.sv @@ -0,0 +1,12 @@ +module alu_shl +#(parameter W=16) +( + input logic[W - 1:0] a, + b, + output logic[W - 1:0] q, + output logic c +); + + assign {c, q} = {1'b0, a} << b; + +endmodule |
