mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 15:17:36 +00:00
33 lines
562 B
Verilog
33 lines
562 B
Verilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2008 by Wilson Snyder.
|
|
|
|
module t (/*AUTOARG*/
|
|
// Inputs
|
|
clk
|
|
);
|
|
|
|
input clk;
|
|
logic oe;
|
|
|
|
read r (.clk(clk), .data( ( ( oe == 1'd001 ) && implicit_write ) ) );
|
|
set s (.clk(clk), .enable(implicit_write));
|
|
read u (.clk(clk), .data(~implicit_also));
|
|
|
|
endmodule
|
|
|
|
module set (
|
|
input clk,
|
|
output enable
|
|
);
|
|
assign enable = 1'b0;
|
|
endmodule
|
|
|
|
module read (
|
|
input clk,
|
|
input data
|
|
);
|
|
|
|
endmodule
|