mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-28 15:07:58 +00:00
Added std::initializer_list<> constructor to SigSpec
This commit is contained in:
parent
f99495a895
commit
d86a25f145
2 changed files with 15 additions and 0 deletions
|
@ -26,6 +26,8 @@
|
|||
#include <string>
|
||||
#include <assert.h>
|
||||
|
||||
#include <initializer_list>
|
||||
|
||||
// various helpers (unrelated to RTLIL)
|
||||
std::string stringf(const char *fmt, ...);
|
||||
#define SIZE(__obj) int(__obj.size())
|
||||
|
@ -738,6 +740,7 @@ private:
|
|||
public:
|
||||
SigSpec();
|
||||
SigSpec(const RTLIL::SigSpec &other);
|
||||
SigSpec(std::initializer_list<RTLIL::SigSpec> parts);
|
||||
const RTLIL::SigSpec &operator=(const RTLIL::SigSpec &other);
|
||||
|
||||
SigSpec(const RTLIL::Const &value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue