mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-11 20:21:26 +00:00
kernel: Add RTLIL::PortDir for a combined input and output flag
This commit is contained in:
parent
9f62dd6e0e
commit
b394629e3f
3 changed files with 34 additions and 0 deletions
|
@ -83,6 +83,13 @@ namespace RTLIL
|
|||
SB_EXCL_BB_CMDERR = 15 // call log_cmd_error on black boxed module
|
||||
};
|
||||
|
||||
enum PortDir : unsigned char {
|
||||
PD_UNKNOWN = 0,
|
||||
PD_INPUT = 1,
|
||||
PD_OUTPUT = 2,
|
||||
PD_INOUT = 3
|
||||
};
|
||||
|
||||
struct Const;
|
||||
struct AttrObject;
|
||||
struct NamedObject;
|
||||
|
@ -1943,6 +1950,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