chore: scaffold project
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
2fe071f620
8 files changed
+678
No files matched your search
@@ -0,0 +1,11 @@
|
||||
module counter #(parameter WIDTH = 8) (
|
||||
input wire clk,
|
||||
input wire rst,
|
||||
input wire en,
|
||||
output reg [WIDTH-1:0] q
|
||||
);
|
||||
always @(posedge clk) begin
|
||||
if (rst) q <= 0;
|
||||
else if (en) q <= q + 1;
|
||||
end
|
||||
endmodule
|
||||
Reference in new issue
Block a user