|
wiRedPanda
Logic Circuit Simulator
|
Generates a synthesisable SystemVerilog module from a circuit's element graph. More...
#include <SystemVerilogCodeGen.h>
Public Member Functions | |
| void | generate () |
| Generates the SystemVerilog output file for the circuit. | |
| const QVector< MappedPinSystemVerilog > & | inputMap () const |
| Returns the mapped input pins after generation. | |
| const QString & | moduleName () const |
| Returns the top-level module name derived from the file name. | |
| const QVector< MappedPinSystemVerilog > & | outputMap () const |
| Returns the mapped output pins after generation. | |
| SystemVerilogCodeGen (const QString &fileName, const QVector< GraphicElement * > &elements) | |
| Constructs the code generator for the given output fileName and circuit elements. | |
Generates a synthesisable SystemVerilog module from a circuit's element graph.
Walks the topologically sorted element list, maps each gate/flip-flop to SystemVerilog constructs, and handles hierarchical IC modules by recursively generating sub-modules. Wireless Tx/Rx nodes are resolved via the same label-matching used by the simulation engine.
Definition at line 80 of file SystemVerilogCodeGen.h.
| SystemVerilogCodeGen::SystemVerilogCodeGen | ( | const QString & | fileName, |
| const QVector< GraphicElement * > & | elements ) |
Constructs the code generator for the given output fileName and circuit elements.
Definition at line 31 of file SystemVerilogCodeGen.cpp.
| void SystemVerilogCodeGen::generate | ( | ) |
Generates the SystemVerilog output file for the circuit.
Definition at line 491 of file SystemVerilogCodeGen.cpp.
References Scene::wirelessTxInputPorts().
Referenced by ExportController::exportToSystemVerilog().
|
inline |
Returns the mapped input pins after generation.
Definition at line 92 of file SystemVerilogCodeGen.h.
|
inline |
Returns the top-level module name derived from the file name.
Definition at line 96 of file SystemVerilogCodeGen.h.
|
inline |
Returns the mapped output pins after generation.
Definition at line 94 of file SystemVerilogCodeGen.h.