mirror of
https://github.com/verilator/verilator.git
synced 2025-01-09 16:17:36 +00:00
35 lines
573 B
Coq
35 lines
573 B
Coq
|
// DESCRIPTION: Verilator: Verilog Test module
|
||
|
//
|
||
|
// This file ONLY is placed into the Public Domain, for any use,
|
||
|
// without warranty, 2011 by Wilson Snyder.
|
||
|
|
||
|
module t
|
||
|
(
|
||
|
input wire reset_l,
|
||
|
input wire clk
|
||
|
);
|
||
|
|
||
|
sub sub_I
|
||
|
(
|
||
|
.clk(clk),
|
||
|
.reset_l(reset_l),
|
||
|
.cpu_if_timeout(1'b0)
|
||
|
);
|
||
|
endmodule
|
||
|
|
||
|
module sub
|
||
|
(
|
||
|
input wire clk, reset_l,
|
||
|
output reg cpu_if_timeout
|
||
|
);
|
||
|
|
||
|
always @(posedge clk) begin
|
||
|
if (!reset_l) begin
|
||
|
cpu_if_timeout <= 1'b0;
|
||
|
end
|
||
|
else begin
|
||
|
cpu_if_timeout <= 1'b0;
|
||
|
end
|
||
|
end
|
||
|
endmodule
|