mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-02 09:20:23 +00:00
scratchpad entry abc9.if.R to &if -R
This commit is contained in:
parent
0696b7bc9e
commit
589ffead5c
1 changed files with 6 additions and 0 deletions
|
@ -303,6 +303,12 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *module, std::string scrip
|
||||||
for (size_t pos = abc9_script.find("{C}"); pos != std::string::npos; pos = abc9_script.find("{C}", pos))
|
for (size_t pos = abc9_script.find("{C}"); pos != std::string::npos; pos = abc9_script.find("{C}", pos))
|
||||||
abc9_script = abc9_script.substr(0, pos) + C + abc9_script.substr(pos+3);
|
abc9_script = abc9_script.substr(0, pos) + C + abc9_script.substr(pos+3);
|
||||||
|
|
||||||
|
std::string R;
|
||||||
|
if (design->scratchpad.count("abc9.if.R"))
|
||||||
|
C = "-C " + design->scratchpad_get_string("abc9.if.R");
|
||||||
|
for (size_t pos = abc9_script.find("{R}"); pos != std::string::npos; pos = abc9_script.find("{R}", pos))
|
||||||
|
abc9_script = abc9_script.substr(0, pos) + C + abc9_script.substr(pos+3);
|
||||||
|
|
||||||
if (nomfs)
|
if (nomfs)
|
||||||
for (size_t pos = abc9_script.find("&mfs"); pos != std::string::npos; pos = abc9_script.find("&mfs", pos))
|
for (size_t pos = abc9_script.find("&mfs"); pos != std::string::npos; pos = abc9_script.find("&mfs", pos))
|
||||||
abc9_script = abc9_script.erase(pos, strlen("&mfs"));
|
abc9_script = abc9_script.erase(pos, strlen("&mfs"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue