reorganize and add support for multiple testbenches
This commit is contained in:
17
rtl/counter.v
Normal file
17
rtl/counter.v
Normal file
@@ -0,0 +1,17 @@
|
||||
module counter #(
|
||||
parameter BITS = 8
|
||||
)(
|
||||
input clk,
|
||||
input reset,
|
||||
output reg [BITS-1:0] y
|
||||
);
|
||||
|
||||
always @(posedge clk or posedge reset) begin
|
||||
if (reset) begin
|
||||
y <= 0;
|
||||
end else begin
|
||||
y <= y + 1;
|
||||
end
|
||||
end
|
||||
|
||||
endmodule
|
Reference in New Issue
Block a user