mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-25 11:26:22 +00:00
test_patch total basics
This commit is contained in:
parent
6f0be1b4e9
commit
89e5c4ccca
4 changed files with 62 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define PATCH_H
|
||||
|
||||
#include "kernel/rtlil.h"
|
||||
#include "kernel/sigtools.h"
|
||||
|
||||
YOSYS_NAMESPACE_BEGIN
|
||||
|
||||
|
|
@ -16,17 +17,18 @@ protected:
|
|||
void add(RTLIL::Process *process);
|
||||
|
||||
public:
|
||||
// RTLIL::Design *design;
|
||||
Module *mod;
|
||||
SigMap map;
|
||||
vector<Wire> wires_;
|
||||
vector<Cell> cells_;
|
||||
|
||||
vector<RTLIL::SigSig> connections_;
|
||||
vector<RTLIL::SigSig> connections_;
|
||||
|
||||
void connect(const RTLIL::SigSig &conn);
|
||||
void connect(const RTLIL::SigSpec &lhs, const RTLIL::SigSpec &rhs);
|
||||
const std::vector<RTLIL::SigSig> &connections() const;
|
||||
|
||||
void patch(RTLIL::Module *mod);
|
||||
void patch();
|
||||
RTLIL::Wire *addWire(RTLIL::IdString name, int width = 1);
|
||||
RTLIL::Wire *addWire(RTLIL::IdString name, const RTLIL::Wire *other);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue