wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
MappedPinSystemVerilog Class Reference

Maps a circuit port to its generated SystemVerilog signal name and module port. More...

#include <SystemVerilogCodeGen.h>

Public Member Functions

 MappedPinSystemVerilog ()=default
 MappedPinSystemVerilog (GraphicElement *elm, const QString &pin, const QString &varName, Port *port, const int portNumber=0)
 Constructs a pin mapping.

Public Attributes

GraphicElementm_elm = nullptr
 Owning graphic element.
QString m_pin
 Top-level module port name.
Portm_port = nullptr
 Source port in the circuit graph.
int m_portNumber = 0
 Port index within the element.
QString m_varName
 Generated internal signal name.

Detailed Description

Maps a circuit port to its generated SystemVerilog signal name and module port.

Definition at line 30 of file SystemVerilogCodeGen.h.

Constructor & Destructor Documentation

◆ MappedPinSystemVerilog() [1/2]

MappedPinSystemVerilog::MappedPinSystemVerilog ( )
default

◆ MappedPinSystemVerilog() [2/2]

MappedPinSystemVerilog::MappedPinSystemVerilog ( GraphicElement * elm,
const QString & pin,
const QString & varName,
Port * port,
const int portNumber = 0 )
inline

Constructs a pin mapping.

Parameters
elmOwning graphic element.
pinTop-level module port name.
varNameInternal signal/wire name in the generated code.
portSource Port this mapping refers to.
portNumberIndex of the port within the element (default 0).

Definition at line 42 of file SystemVerilogCodeGen.h.

References m_elm, m_pin, m_port, m_portNumber, and m_varName.

Member Data Documentation

◆ m_elm

GraphicElement* MappedPinSystemVerilog::m_elm = nullptr

Owning graphic element.

Definition at line 51 of file SystemVerilogCodeGen.h.

Referenced by MappedPinSystemVerilog().

◆ m_pin

QString MappedPinSystemVerilog::m_pin

Top-level module port name.

Definition at line 53 of file SystemVerilogCodeGen.h.

Referenced by MappedPinSystemVerilog().

◆ m_port

Port* MappedPinSystemVerilog::m_port = nullptr

Source port in the circuit graph.

Definition at line 52 of file SystemVerilogCodeGen.h.

Referenced by MappedPinSystemVerilog().

◆ m_portNumber

int MappedPinSystemVerilog::m_portNumber = 0

Port index within the element.

Definition at line 55 of file SystemVerilogCodeGen.h.

Referenced by MappedPinSystemVerilog().

◆ m_varName

QString MappedPinSystemVerilog::m_varName

Generated internal signal name.

Definition at line 54 of file SystemVerilogCodeGen.h.

Referenced by MappedPinSystemVerilog().


The documentation for this class was generated from the following file: