3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-07 14:45:18 +00:00
sby/docs/examples/abstract/demo.v
Claire Wolf a4885ce494 Get rid of verific warning in abstraction example
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-04-03 15:28:23 +02:00

20 lines
330 B
Verilog

module demo (
input clock,
input reset,
output A, B, C, D
);
reg [19:0] counter = 0;
always @(posedge clock) begin
if (reset)
counter <= 0;
else
counter <= counter + 20'd 1;
end
assign A = counter == 123456;
assign B = counter == 234567;
assign C = counter == 345678;
assign D = counter == 456789;
endmodule