Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: azonenberg/yosys
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a59641382d21
Choose a base ref
...
head repository: azonenberg/yosys
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e346b875fcef
Choose a head ref
  • 4 commits
  • 2 files changed
  • 2 contributors

Commits on Aug 28, 2017

  1. Reformatted GP_COUNTx_ADV resets to avoid Yosys thinking that they're…

    … multi-edge-sensitive and getting confused.
    azonenberg committed Aug 28, 2017
    Copy the full SHA
    c314586 View commit details

Commits on Aug 30, 2017

  1. Copy the full SHA
    8530333 View commit details
  2. Merge pull request YosysHQ#397 from azonenberg/gpak-libfixes

    Reformatted GP_COUNTx_ADV resets to avoid Yosys thinking that they're…
    cliffordwolf authored Aug 30, 2017
    Copy the full SHA
    c0034f5 View commit details
  3. Copy the full SHA
    e346b87 View commit details
Showing with 20 additions and 0 deletions.
  1. +16 −0 kernel/rtlil.cc
  2. +4 −0 kernel/rtlil.h
16 changes: 16 additions & 0 deletions kernel/rtlil.cc
Original file line number Diff line number Diff line change
@@ -234,6 +234,22 @@ pool<string> RTLIL::AttrObject::get_strpool_attribute(RTLIL::IdString id) const
return data;
}

void RTLIL::AttrObject::set_src_attribute(const std::string &src)
{
if (src.empty())
attributes.erase("\\src");
else
attributes["\\src"] = src;
}

std::string RTLIL::AttrObject::get_src_attribute() const
{
std::string src;
if (attributes.count("\\src"))
src = attributes.at("\\src").decode_string();
return src;
}

bool RTLIL::Selection::selected_module(RTLIL::IdString mod_name) const
{
if (full_selection)
4 changes: 4 additions & 0 deletions kernel/rtlil.h
Original file line number Diff line number Diff line change
@@ -505,9 +505,13 @@ struct RTLIL::AttrObject

void set_bool_attribute(RTLIL::IdString id);
bool get_bool_attribute(RTLIL::IdString id) const;

void set_strpool_attribute(RTLIL::IdString id, const pool<string> &data);
void add_strpool_attribute(RTLIL::IdString id, const pool<string> &data);
pool<string> get_strpool_attribute(RTLIL::IdString id) const;

void set_src_attribute(const std::string &src);
std::string get_src_attribute() const;
};

struct RTLIL::SigChunk