projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aeb4d4
)
Add handling of verific OPER_REDUCE_NOR
author
Clifford Wolf
<clifford@clifford.at>
Mon, 26 Feb 2018 14:26:01 +0000
(15:26 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Mon, 26 Feb 2018 14:26:01 +0000
(15:26 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/verific/verific.cc
patch
|
blob
|
history
diff --git
a/frontends/verific/verific.cc
b/frontends/verific/verific.cc
index 1a16f7508033af84560888e1c9f1d3558191d128..e85e6cf71009d984dacc0d058a436f356c2c8bcc 100644
(file)
--- a/
frontends/verific/verific.cc
+++ b/
frontends/verific/verific.cc
@@
-478,6
+478,12
@@
bool VerificImporter::import_netlist_instance_cells(Instance *inst, RTLIL::IdStr
return true;
}
+ if (inst->Type() == OPER_REDUCE_NOR) {
+ SigSpec t = module->ReduceOr(NEW_ID, IN, SIGNED);
+ module->addNot(inst_name, t, net_map_at(inst->GetOutput()));
+ return true;
+ }
+
if (inst->Type() == OPER_LESSTHAN) {
Net *net_cin = inst->GetCin();
if (net_cin->IsGnd())