mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-30 21:19:30 +00:00
kernel: Add RTLIL::PortDir for a combined input and output flag
This commit is contained in:
parent
6466b15367
commit
22423b97c1
3 changed files with 34 additions and 0 deletions
|
@ -91,6 +91,13 @@ namespace RTLIL
|
|||
STATIC_ID_END,
|
||||
};
|
||||
|
||||
enum PortDir : unsigned char {
|
||||
PD_UNKNOWN = 0,
|
||||
PD_INPUT = 1,
|
||||
PD_OUTPUT = 2,
|
||||
PD_INOUT = 3
|
||||
};
|
||||
|
||||
struct Const;
|
||||
struct AttrObject;
|
||||
struct NamedObject;
|
||||
|
@ -2123,6 +2130,7 @@ public:
|
|||
bool known() const;
|
||||
bool input(const RTLIL::IdString &portname) const;
|
||||
bool output(const RTLIL::IdString &portname) const;
|
||||
PortDir port_dir(const RTLIL::IdString &portname) const;
|
||||
|
||||
// access cell parameters
|
||||
bool hasParam(const RTLIL::IdString ¶mname) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue