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/v5/jyh_4490_5_testbench.v
2022-04-19 21:45:53 +08:00

24 lines
No EOL
274 B
Verilog

`timescale 1ns/1ns
module jyh_4490_5_testbench;
reg clk;
reg en;
wire clk_out;
reg sel;
initial begin
clk=0;
sel=0;
en=0;
#100
en=1;
end
always#10 clk=~clk;
always#50000000 sel=~sel;
jyh_4490_5_divider D1(
.en(en),
.sel(sel),
.clk_out(clk_out),
.clk(clk)
);
endmodule