projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6c354c
)
$_XILINX_SHREG_ to preserve src attribute
author
Eddie Hung
<eddie@fpgeh.com>
Mon, 8 Apr 2019 23:24:20 +0000
(16:24 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Mon, 8 Apr 2019 23:24:20 +0000
(16:24 -0700)
passes/techmap/shregmap.cc
patch
|
blob
|
history
diff --git
a/passes/techmap/shregmap.cc
b/passes/techmap/shregmap.cc
index bd75cd95e141fb1002fa941bbd3e2ad64171f1b7..ec43b56542848fb29d3d15efdaadc7466db93adb 100644
(file)
--- a/
passes/techmap/shregmap.cc
+++ b/
passes/techmap/shregmap.cc
@@
-232,6
+232,7
@@
struct ShregmapTechXilinx7 : ShregmapTech
log_assert(it != sigbit_to_shiftx_offset.end());
auto newcell = cell->module->addCell(NEW_ID, "$__XILINX_SHREG_");
+ newcell->set_src_attribute(cell->get_src_attribute());
newcell->setParam("\\DEPTH", cell->getParam("\\DEPTH"));
newcell->setParam("\\INIT", cell->getParam("\\INIT"));
newcell->setParam("\\CLKPOL", cell->getParam("\\CLKPOL"));