2013-01-19 20:40:35 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2010 Wilson Snyder
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2013-01-19 20:40:35 +01:00
|
|
|
|
2013-05-28 03:39:19 +02:00
|
|
|
interface ifc;
|
2026-03-08 23:26:40 +01:00
|
|
|
logic [3:0] value;
|
|
|
|
|
logic reset;
|
|
|
|
|
modport counter_mp(input reset, output value);
|
|
|
|
|
modport core_mp(output reset, input value);
|
2013-01-19 20:40:35 +01:00
|
|
|
endinterface
|
|
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
module t ( // Inputs
|
|
|
|
|
input clk,
|
|
|
|
|
ifc.counter_mp c_data
|
|
|
|
|
);
|
2013-01-19 20:40:35 +01:00
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
integer cyc = 1;
|
2013-01-19 20:40:35 +01:00
|
|
|
|
|
|
|
|
endmodule
|