Sys Verilog Interfaces
Sys Verilog Interfaces
EXAMPLE
Interface Definitions
Top-level Netlist
I/F DECLARATIONS
interfaces are defined in a similar way as modules An interface can have ports, just as a module does. This allows signals that are external to the interface, such as a clock or reset line, to be brought into the interface and become part of the bundle of signals represented by the interface. SystemVerilog greatly simplifies netlists
module <module_name> (<interface_name> <port_name>); For example: interface chip_bus; ... endinterface module CACHE (chip_bus pins, // interface port input clock); ... endmodule
I/F MODPORTS
modports define interface connections from the perspective of the module
RECONFIGURABLE I/Fs
Interfaces can use parameter redefinition and generate statements, in the same way as modules. This allows interface models to be defined that can be
interfaces can use generate blocks Generate blocks can be used to replicate continuous assignment statements or procedural blocks within an interface any number of times.