diff options
Diffstat (limited to 'tests/arch/common/counter.v')
-rw-r--r-- | tests/arch/common/counter.v | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/arch/common/counter.v b/tests/arch/common/counter.v index 52852f8ac..97604d3d8 100644 --- a/tests/arch/common/counter.v +++ b/tests/arch/common/counter.v @@ -1,17 +1,11 @@ -module top (
-out,
-clk,
-reset
-);
+module top ( out, clk, reset );
output [7:0] out;
input clk, reset;
reg [7:0] out;
always @(posedge clk, posedge reset)
- if (reset) begin
- out <= 8'b0 ;
- end else
- out <= out + 1;
-
-
+ if (reset)
+ out <= 8'b0;
+ end
+ out <= out + 1;
endmodule
|