mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-09 07:33:25 +00:00
Add better Yosys/Verific name aliasing and reenable dffe opt
This commit is contained in:
parent
2337d97977
commit
fce46d2a53
4 changed files with 6 additions and 2 deletions
|
@ -207,7 +207,9 @@ bool is_blackbox(Netlist *nl)
|
||||||
|
|
||||||
RTLIL::IdString VerificImporter::new_verific_id(Verific::DesignObj *obj)
|
RTLIL::IdString VerificImporter::new_verific_id(Verific::DesignObj *obj)
|
||||||
{
|
{
|
||||||
std::string s = stringf("$%s$%d", obj->Name(), autoidx++);
|
std::string s = stringf("$%s", obj->Name());
|
||||||
|
if (seen_ids.count(s)) s += stringf("$%d", autoidx++);
|
||||||
|
seen_ids.insert(s);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,7 @@ YOSYS_NAMESPACE_BEGIN
|
||||||
|
|
||||||
int autoidx = 1;
|
int autoidx = 1;
|
||||||
int yosys_xtrace = 0;
|
int yosys_xtrace = 0;
|
||||||
|
std::set<string> seen_ids;
|
||||||
RTLIL::Design *yosys_design = NULL;
|
RTLIL::Design *yosys_design = NULL;
|
||||||
CellTypes yosys_celltypes;
|
CellTypes yosys_celltypes;
|
||||||
|
|
||||||
|
|
|
@ -348,6 +348,7 @@ inline int GetSize(RTLIL::Wire *wire);
|
||||||
|
|
||||||
extern int autoidx;
|
extern int autoidx;
|
||||||
extern int yosys_xtrace;
|
extern int yosys_xtrace;
|
||||||
|
extern std::set<string> seen_ids;
|
||||||
|
|
||||||
RTLIL::IdString new_id(std::string file, int line, std::string func);
|
RTLIL::IdString new_id(std::string file, int line, std::string func);
|
||||||
RTLIL::IdString new_id_suffix(std::string file, int line, std::string func, std::string suffix);
|
RTLIL::IdString new_id_suffix(std::string file, int line, std::string func, std::string suffix);
|
||||||
|
|
|
@ -884,7 +884,7 @@ struct OptDffPass : public Pass {
|
||||||
{
|
{
|
||||||
log_header(design, "Executing OPT_DFF pass (perform DFF optimizations).\n");
|
log_header(design, "Executing OPT_DFF pass (perform DFF optimizations).\n");
|
||||||
OptDffOptions opt;
|
OptDffOptions opt;
|
||||||
opt.nodffe = true; // SILIMATE: DISABLE DFFE PASS BECAUSE IT BREAKS THE DESIGN
|
opt.nodffe = false;
|
||||||
opt.nosdff = false;
|
opt.nosdff = false;
|
||||||
opt.simple_dffe = false;
|
opt.simple_dffe = false;
|
||||||
opt.keepdc = false;
|
opt.keepdc = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue