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/v7/jyh_4490_7_testbench.v

62 lines
480 B
Coq
Raw Normal View History

2022-05-17 13:33:03 +00:00
`timescale 1ns/1ns
module jyh_4490_7_testbench;
wire f1,f2;
reg clk,f0,p,sta;
initial begin
clk=0;
f0=0;
p=0;
sta=0;
end
always #10 clk=~clk;
always begin
f0=1;
2022-05-17 14:01:44 +00:00
#300000;
2022-05-17 13:33:03 +00:00
f0=0;
2022-05-17 14:01:44 +00:00
#700000;
2022-05-17 13:33:03 +00:00
f0=1;
2022-05-17 14:01:44 +00:00
#240000;
2022-05-17 13:33:03 +00:00
f0=0;
2022-05-17 14:01:44 +00:00
#760000;
2022-05-17 13:33:03 +00:00
f0=1;
2022-05-17 14:01:44 +00:00
#180000;
2022-05-17 13:33:03 +00:00
f0=0;
2022-05-17 14:01:44 +00:00
#820000;
2022-05-17 13:33:03 +00:00
f0=1;
2022-05-17 14:01:44 +00:00
#120000;
2022-05-17 13:33:03 +00:00
f0=0;
2022-05-17 14:01:44 +00:00
#800000;
2022-05-17 13:33:03 +00:00
f0=1;
2022-05-17 14:01:44 +00:00
#60000;
2022-05-17 13:33:03 +00:00
f0=0;
2022-05-17 14:01:44 +00:00
#940000;
2022-05-17 13:33:03 +00:00
end
always begin
p=0;
sta=0;
2022-05-17 14:01:44 +00:00
#6000000;
2022-05-17 13:33:03 +00:00
p=1;
2022-05-17 14:01:44 +00:00
#3000000;
2022-05-17 13:33:03 +00:00
sta=1;
2022-05-17 14:01:44 +00:00
#3000000;
2022-05-17 13:33:03 +00:00
end
jyh_4490_7_is C0(
.clk(clk),
.p(p),
.f1(f1),
.f0(f0),
.sta(sta),
.f2(f2));
endmodule