sv_lab/5_clock_block/rtl/chip_if.sv
2025-04-14 16:50:04 +08:00

41 lines
1.1 KiB
Systemverilog

//===========================================================================
// Organization : Individual developer
// Filename : chip_if.sv
// Author : Feng Bohan
// Create Time : 16:14:12 2025-04-14
// Last Modified: 16:21:05 2025-04-14
// Abstract :
//--------------------------------------------------------------------------
// Description:
//
//--------------------------------------------------------------------------
// Modification History:
//--------------------------------------------------------------------------
// Rev Date Who Description
// --- ---- --- -----------
// 0.0.01 2025-04-14 Feng Bohan initial version
//===========================================================================
interface chip_if(input bit clk);
logic rst_n;
logic cnt_en;
logic clear;
logic [7:0] cnt;
task init;
rst_n = 0;
cnt_en = 0;
clear = 0;
endtask
clocking ck_p @(posedge clk);
output rst_n;
output cnt_en;
output clear;
input cnt;
endclocking
modport DUT(clocking ck_p);
endinterface