mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-24 14:53:42 +00:00
vector fix for pyosys
This commit is contained in:
parent
f8672816b0
commit
7864c6dd34
2 changed files with 6 additions and 6 deletions
|
@ -715,7 +715,7 @@ pool<string> RTLIL::AttrObject::get_strpool_attribute(const RTLIL::IdString &id)
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RTLIL::AttrObject::set_hdlname_attribute(const vector<string> &hierarchy)
|
void RTLIL::AttrObject::set_hdlname_attribute(const std::vector<string> &hierarchy)
|
||||||
{
|
{
|
||||||
string attrval;
|
string attrval;
|
||||||
for (const auto &ident : hierarchy) {
|
for (const auto &ident : hierarchy) {
|
||||||
|
@ -731,7 +731,7 @@ vector<string> RTLIL::AttrObject::get_hdlname_attribute() const
|
||||||
return split_tokens(get_string_attribute(ID::hdlname), " ");
|
return split_tokens(get_string_attribute(ID::hdlname), " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
void RTLIL::AttrObject::set_intvec_attribute(const RTLIL::IdString& id, const vector<int> &data)
|
void RTLIL::AttrObject::set_intvec_attribute(const RTLIL::IdString& id, const std::vector<int> &data)
|
||||||
{
|
{
|
||||||
std::stringstream attrval;
|
std::stringstream attrval;
|
||||||
for (auto &i : data) {
|
for (auto &i : data) {
|
||||||
|
|
|
@ -832,11 +832,11 @@ struct RTLIL::AttrObject
|
||||||
return get_string_attribute(ID::src);
|
return get_string_attribute(ID::src);
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_hdlname_attribute(const vector<string> &hierarchy);
|
void set_hdlname_attribute(const std::vector<string> &hierarchy);
|
||||||
vector<string> get_hdlname_attribute() const;
|
std::vector<string> get_hdlname_attribute() const;
|
||||||
|
|
||||||
void set_intvec_attribute(const RTLIL::IdString& id, const vector<int> &data);
|
void set_intvec_attribute(const RTLIL::IdString& id, const std::vector<int> &data);
|
||||||
vector<int> get_intvec_attribute(const RTLIL::IdString &id) const;
|
std::vector<int> get_intvec_attribute(const RTLIL::IdString &id) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RTLIL::SigChunk
|
struct RTLIL::SigChunk
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue