3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-02 20:31:22 +00:00

vector fix for pyosys

This commit is contained in:
Akash Levy 2024-10-24 23:12:54 -07:00
parent f8672816b0
commit 7864c6dd34
2 changed files with 6 additions and 6 deletions

View file

@ -715,7 +715,7 @@ pool<string> RTLIL::AttrObject::get_strpool_attribute(const RTLIL::IdString &id)
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;
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), " ");
}
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;
for (auto &i : data) {

View file

@ -832,11 +832,11 @@ struct RTLIL::AttrObject
return get_string_attribute(ID::src);
}
void set_hdlname_attribute(const vector<string> &hierarchy);
vector<string> get_hdlname_attribute() const;
void set_hdlname_attribute(const std::vector<string> &hierarchy);
std::vector<string> get_hdlname_attribute() const;
void set_intvec_attribute(const RTLIL::IdString& id, const vector<int> &data);
vector<int> get_intvec_attribute(const RTLIL::IdString &id) const;
void set_intvec_attribute(const RTLIL::IdString& id, const std::vector<int> &data);
std::vector<int> get_intvec_attribute(const RTLIL::IdString &id) const;
};
struct RTLIL::SigChunk