2009-12-08 23:29:24 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
//
|
2020-03-21 15:24:24 +00:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
// any use, without warranty, 2008 by Wilson Snyder.
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2009-12-08 23:29:24 +00:00
|
|
|
|
|
|
|
module t (/*AUTOARG*/
|
|
|
|
// Inputs
|
|
|
|
clk
|
|
|
|
);
|
|
|
|
|
|
|
|
input clk;
|
|
|
|
logic oe;
|
|
|
|
|
|
|
|
read r (.clk(clk), .data( ( ( oe == 1'd001 ) && implicit_write ) ) );
|
2019-09-17 01:09:18 +00:00
|
|
|
sets s (.clk(clk), .enable(implicit_write));
|
2014-03-15 00:19:56 +00:00
|
|
|
read u (.clk(clk), .data(~implicit_also));
|
2009-12-08 23:29:24 +00:00
|
|
|
|
|
|
|
endmodule
|
|
|
|
|
2019-09-17 01:09:18 +00:00
|
|
|
module sets (
|
2009-12-08 23:29:24 +00:00
|
|
|
input clk,
|
|
|
|
output enable
|
|
|
|
);
|
2012-04-22 01:45:28 +00:00
|
|
|
assign enable = 1'b0;
|
2009-12-08 23:29:24 +00:00
|
|
|
endmodule
|
|
|
|
|
|
|
|
module read (
|
|
|
|
input clk,
|
|
|
|
input data
|
|
|
|
);
|
|
|
|
|
|
|
|
endmodule
|