Made it clear that we are using SystemVerilog by renaming HDL files to end in .sv rather than .v

This commit is contained in:
riley committed 2026-09-03 16:05:52 +10:00
1 parent 0c21734447
commit 6668969b03
13 files changed

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
module shifter #(width=8)(input logic op[1:0],
input logic[width-1:0] A, input logic[width-1:0] B,
output logic[width-1:0] OUT_1);
always_comb begin
case (op)
00: OUT_1 = A << B;
01: OUT_1 = A >> B;
10: OUT_1 = $signed(A) >>> B;
default:;
endcase
end
endmodule