# \#systemverilog-interface

**URL:** https://verificationacademy.com/forums/tag/systemverilog-interface/6032.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Why does using a generic interface port (without modports) allow both dut0 and dut1 to drive data and enable without error, while using modports enforces directionality and prevents such assignments?](https://verificationacademy.com/forums/t/why-does-using-a-generic-interface-port-without-modports-allow-both-dut0-and-dut1-to-drive-data-and-enable-without-error-while-using-modports-enforces-directionality-and-prevents-such-assignments/49904)

<div class="topic-metadata">

**Author:** [@Vandan\_Parekh\_81](https://verificationacademy.com/forums/u/Vandan_Parekh_81)\
**Replies:** 0\
**Last updated:** [March 21, 2025, 10:00am UTC](https://verificationacademy.com/forums/t/why-does-using-a-generic-interface-port-without-modports-allow-both-dut0-and-dut1-to-drive-data-and-enable-without-error-while-using-modports-enforces-directionality-and-prevents-such-assignments/49904 "2025-03-21T10:00:17Z")

</div>

interface myBus; logic clk; logic rst; logic \[7:0\] data; logic enable; modport dut0 (input clk, rst, enable, output data); modport dut1 (input clk, rst, data, output enable); endinterface module dut1 (inter…

---

## [Placing Assertions in Interfaces](https://verificationacademy.com/forums/t/placing-assertions-in-interfaces/47505)

<div class="topic-metadata">

**Author:** [@cwcar](https://verificationacademy.com/forums/u/cwcar)\
**Replies:** 0\
**Last updated:** [June 4, 2024, 12:59pm UTC](https://verificationacademy.com/forums/t/placing-assertions-in-interfaces/47505 "2024-06-04T12:59:59Z")

</div>

If I am using Interfaces to declare ports and connectivity between modules in RTL would it be appropriate to add simple protocol assertions within them so they are inherited for all instantiations of the interface? It i…

---

## [False posedge event indication on a signal  ](https://verificationacademy.com/forums/t/false-posedge-event-indication-on-a-signal/46178)

<div class="topic-metadata">

**Author:** [@Vlad](https://verificationacademy.com/forums/u/Vlad)\
**Replies:** 1\
**Last updated:** [February 16, 2024, 5:26pm UTC](https://verificationacademy.com/forums/t/false-posedge-event-indication-on-a-signal/46178 "2024-02-16T17:26:12Z")

</div>

Hi , I have a signal which is part of clocking block , defined as follows : interface my\_if (input sample\_clk) ; clocking cb\_clk @(posedge sample\_clk); input sig1; endclocking : cb\_clk endinterface I see…

---

## [How to use config\_db get() and set method to send array of interfaces?](https://verificationacademy.com/forums/t/how-to-use-config-db-get-and-set-method-to-send-array-of-interfaces/40679)

<div class="topic-metadata">

**Author:** [@abhishek.khule.seagate.com](https://verificationacademy.com/forums/u/abhishek.khule.seagate.com)\
**Replies:** 5\
**Last updated:** [July 25, 2022, 7:23pm UTC](https://verificationacademy.com/forums/t/how-to-use-config-db-get-and-set-method-to-send-array-of-interfaces/40679 "2022-07-25T19:23:31Z")

</div>

Hi, I am trying to set and get array of interfaces using config\_db. I am able use generate method to set the interfaces but how do I get the interfaces? module abc(); ram\_if intf\[3\](clk, rst\_n); generate for (…

---

## [Assign to interface input inside Class](https://verificationacademy.com/forums/t/assign-to-interface-input-inside-class/40528)

<div class="topic-metadata">

**Author:** [@Junior](https://verificationacademy.com/forums/u/Junior)\
**Replies:** 3\
**Last updated:** [June 14, 2022, 1:33pm UTC](https://verificationacademy.com/forums/t/assign-to-interface-input-inside-class/40528 "2022-06-14T13:33:53Z")

</div>

Hi I have an interface : interface bus\_ifc (inout\[2:0\] bus); .... and I want to assign to the bus variable in class struct temp {a,b,c} class a temp t; t.a = 1; t.b=0; t.c=0; fork begin agent.bus\_if…

---

## [How to connect multiple interface within dut in UVM?](https://verificationacademy.com/forums/t/how-to-connect-multiple-interface-within-dut-in-uvm/40061)

<div class="topic-metadata">

**Author:** [@UVM\_LOVE](https://verificationacademy.com/forums/u/UVM_LOVE)\
**Replies:** 10\
**Last updated:** [February 19, 2022, 8:04am UTC](https://verificationacademy.com/forums/t/how-to-connect-multiple-interface-within-dut-in-uvm/40061 "2022-02-19T08:04:11Z")

</div>

Hi I’m trying to implement multiple interface into DUT. \`include "interface.sv" \`include "test.sv" module tbench\_top; //creatinng instance of interface intf i\_intf(); i2c\_intf i\_i2c\_intf(); //Testca…

---

## [Hypothetical question : what if there are major updates in my interface, creating new interface with different name but don't want to touch Driver & Monitor code](https://verificationacademy.com/forums/t/hypothetical-question-what-if-there-are-major-updates-in-my-interface-creating-new-interface-with-different-name-but-dont-want-to-touch-driver-monitor-code/39975)

<div class="topic-metadata">

**Author:** [@vickydhudashia](https://verificationacademy.com/forums/u/vickydhudashia)\
**Replies:** 2\
**Last updated:** [January 22, 2022, 10:09pm UTC](https://verificationacademy.com/forums/t/hypothetical-question-what-if-there-are-major-updates-in-my-interface-creating-new-interface-with-different-name-but-dont-want-to-touch-driver-monitor-code/39975 "2022-01-22T22:09:06Z")

</div>

Here change in interface can be interpreted as adding more signals or as big of a change as you can think of. I don’t want to change any (or most less possible) of my TB code. (specially in my driver and monitor where i…

---

## [Monitor the toggling of interface siganls](https://verificationacademy.com/forums/t/monitor-the-toggling-of-interface-siganls/39308)

<div class="topic-metadata">

**Author:** [@dddvlsique](https://verificationacademy.com/forums/u/dddvlsique)\
**Replies:** 1\
**Last updated:** [July 13, 2021, 6:12am UTC](https://verificationacademy.com/forums/t/monitor-the-toggling-of-interface-siganls/39308 "2021-07-13T06:12:21Z")

</div>

Hello, I have bunch of signals in interface ,need to create a print task in a class which takes interface as an argument ,task is used to print the signal when any signal values changes from 0 to 1 throughout simulatio…

---

## [Parameterizing the Bit Widths of fields in a packed struct so that modules can infer bit width if used in port map - virtual interface - interface - compile time configured struct bit width](https://verificationacademy.com/forums/t/parameterizing-the-bit-widths-of-fields-in-a-packed-struct-so-that-modules-can-infer-bit-width-if-used-in-port-map-virtual-interface-interface-compile-time-configured-struct-bit-width/38548)

<div class="topic-metadata">

**Author:** [@ik631](https://verificationacademy.com/forums/u/ik631)\
**Replies:** 4\
**Last updated:** [January 7, 2021, 6:15pm UTC](https://verificationacademy.com/forums/t/parameterizing-the-bit-widths-of-fields-in-a-packed-struct-so-that-modules-can-infer-bit-width-if-used-in-port-map-virtual-interface-interface-compile-time-configured-struct-bit-width/38548 "2021-01-07T18:15:53Z")

</div>

Also discussed at: https://forums.xilinx.com/t5/Synthesis/Parameterizing-the-Bit-Widths-of-fields-in-a-packed-struct-so/td-p/1191678 I am having trouble accomplishing my intent in SystemVerilog trying to use the lates…

---

## [Binding modules with systemverilog interface](https://verificationacademy.com/forums/t/binding-modules-with-systemverilog-interface/38026)

<div class="topic-metadata">

**Author:** [@r\_raveendran](https://verificationacademy.com/forums/u/r_raveendran)\
**Replies:** 4\
**Last updated:** [September 4, 2020, 5:48pm UTC](https://verificationacademy.com/forums/t/binding-modules-with-systemverilog-interface/38026 "2020-09-04T17:48:51Z")

</div>

Hi, I have doubt regarding binding interface with module in system verilog. I have one input port and one output port in my dut module module dut(input clk, output req); endmodule Interface I have written like this: …

---

## [How do I use buf or nmos build in modules inside interface](https://verificationacademy.com/forums/t/how-do-i-use-buf-or-nmos-build-in-modules-inside-interface/37809)

<div class="topic-metadata">

**Author:** [@vivekraj.pdx.edu](https://verificationacademy.com/forums/u/vivekraj.pdx.edu)\
**Replies:** 1\
**Last updated:** [July 6, 2020, 5:58pm UTC](https://verificationacademy.com/forums/t/how-do-i-use-buf-or-nmos-build-in-modules-inside-interface/37809 "2020-07-06T17:58:14Z")

</div>

I am writing bus functional model for i2c protocol. I am using SystemVerilog interface to implement it. How do I use buf or nmos build in modules inside interface? If it cannot be used. How do I implement bfm object wh…

---

## [How to connect interface ports to VHDL module ports](https://verificationacademy.com/forums/t/how-to-connect-interface-ports-to-vhdl-module-ports/37431)

<div class="topic-metadata">

**Author:** [@Yasmine4](https://verificationacademy.com/forums/u/Yasmine4)\
**Replies:** 3\
**Last updated:** [April 13, 2020, 5:32pm UTC](https://verificationacademy.com/forums/t/how-to-connect-interface-ports-to-vhdl-module-ports/37431 "2020-04-13T17:32:46Z")

</div>

Hello, I have a top module in Systemverilog, containing sub-blocks which are connected with each other by interfaces, one sub-block is in VHDL, and I need to connect it to a Systemverilog sub-block through my interface. …

---

## [Interface based Query](https://verificationacademy.com/forums/t/interface-based-query/37121)

<div class="topic-metadata">

**Author:** [@atanubiswas](https://verificationacademy.com/forums/u/atanubiswas)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 9:56pm UTC](https://verificationacademy.com/forums/t/interface-based-query/37121 "2020-02-04T21:56:51Z")

</div>

I have the following queries wrt Interface construct in SV: Why is it recommended to drive the interface signals via a Non-Blocking Assignment? The DUT evaluates its logic and drives the outputs to the Testbench throug…

---

## [UVM clock Agent](https://verificationacademy.com/forums/t/uvm-clock-agent/36857)

<div class="topic-metadata">

**Author:** [@SARTH21](https://verificationacademy.com/forums/u/SARTH21)\
**Replies:** 7\
**Last updated:** [December 5, 2019, 6:10am UTC](https://verificationacademy.com/forums/t/uvm-clock-agent/36857 "2019-12-05T06:10:15Z")

</div>

Hello I am facing some issues with a clock agent I made . This agent has a clk interface and runs by a clock\_sequence which is started in test. Now I have two more interfaces in top file viz. system\_interface instanc…

---

## [Systemverilog interface connect Error-\[SV-UIP\]](https://verificationacademy.com/forums/t/systemverilog-interface-connect-error-sv-uip/35977)

<div class="topic-metadata">

**Author:** [@joefann](https://verificationacademy.com/forums/u/joefann)\
**Replies:** 2\
**Last updated:** [April 17, 2019, 1:50am UTC](https://verificationacademy.com/forums/t/systemverilog-interface-connect-error-sv-uip/35977 "2019-04-17T01:50:15Z")

</div>

Hi there, I’m a newer with the usage of system verilog “interface”. Followings is my explanations and codes. step 1. Define a interface as “IN\_DATA\_IF”. step 2. Build a module “DATA\_MODULE” that have a “IN\_DATA\_IF” l…

---

## [Virtual interface usage in package](https://verificationacademy.com/forums/t/virtual-interface-usage-in-package/32855)

<div class="topic-metadata">

**Author:** [@haykp](https://verificationacademy.com/forums/u/haykp)\
**Replies:** 1\
**Last updated:** [February 14, 2017, 1:27pm UTC](https://verificationacademy.com/forums/t/virtual-interface-usage-in-package/32855 "2017-02-14T13:27:04Z")

</div>

Dear Forum, Please help understand one issue connected with virtual interface usage in package. So I have a package in which I want to declare the interface instance. When I am declaring it, than simulator gives error. …
