This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
justhomework/Quartus/final/tb.v

26 lines
242 B
Coq
Raw Normal View History

2022-06-13 09:46:24 +00:00
`timescale 1ns/1ns
module tb;
reg clk;
reg key;
wire [3:0] out;
initial begin
clk=0;
key=0;
end
always#10 clk=~clk;
always begin
repeat(10)
#15 key=~key;
repeat(10)
#15 key=0;
end
mstate M1(
.clk(clk),
.key(key),
.out(out));
endmodule