Added header guards to prevent errors from double-inclusions

This commit is contained in:
riley committed 2026-09-13 23:09:08 +10:00
1 parent 78efccfe1e
commit 19ba1bf473
5 files changed
+21 -3

No files matched your search

+4 -1
View File
@@ -1,3 +1,5 @@
`ifndef SHIFTER_H_SV
`define SHIFTER_H_SV
module shifter #(width=8)(input logic [2:0] op,
input logic[width-1:0] A, input logic[width-1:0] C, input logic[$clog2(width)-1:0] B,
output logic[width-1:0] OUT_1);
@@ -13,4 +15,5 @@ module shifter #(width=8)(input logic [2:0] op,
default:;
endcase
end
endmodule
endmodule
`endif