top.v 286 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
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
SergeyDegtyar committed
14
`ifndef BUG
15
			out <= out + 1;
SergeyDegtyar committed
16 17 18
`else
			out <= out - 1'bZ;
`endif
19 20 21


endmodule