3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-27 07:06:04 +00:00

Add docs/examples/abstract

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2019-03-27 14:45:30 +01:00
parent f918e2369a
commit afe6960ffe
6 changed files with 124 additions and 0 deletions

View file

@ -0,0 +1,19 @@
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 + 1;
end
assign A = counter == 123456;
assign B = counter == 234567;
assign C = counter == 345678;
assign D = counter == 456789;
endmodule