interface ticket_if(input logic clk,rst_n,[5:0]m_in,output logic ticket_out,[5:0]m_out); logic [5:0]sum; task change(input logic [5:0]in_data, output logic [5:0]out_data ); out_data = in_data - 6; endtask //automatic // 端口 modport ticket_ports(input clk, rst_n, ...
Inside the class, there is a task help me to do print and add 1 after 1 clk. However, program isn't run as I want, program will hold @(posedge clk) inside task. Could someone tell me what's going on?? TINGMING timescale 1ns/1ps; class sv_function; local int i; function...