File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -249,8 +249,10 @@ struct QlBramSplitPass : public Pass {
249249 bram_2x18->setParam (RTLIL::escape_id (" CFG_ENABLE_B" ), bram_0->getParam (RTLIL::escape_id (" CFG_ENABLE_B" )));
250250 bram_2x18->setParam (RTLIL::escape_id (" CFG_ENABLE_D" ), bram_1->getParam (RTLIL::escape_id (" CFG_ENABLE_B" )));
251251 }
252- bram_2x18->setParam (RTLIL::escape_id (" INIT0" ), bram_0->getParam (RTLIL::escape_id (" INIT" )));
253- bram_2x18->setParam (RTLIL::escape_id (" INIT1" ), bram_1->getParam (RTLIL::escape_id (" INIT" )));
252+ if (bram_0->hasParam (RTLIL::escape_id (" INIT" )))
253+ bram_2x18->setParam (RTLIL::escape_id (" INIT0" ), bram_0->getParam (RTLIL::escape_id (" INIT" )));
254+ if (bram_1->hasParam (RTLIL::escape_id (" INIT" )))
255+ bram_2x18->setParam (RTLIL::escape_id (" INIT1" ), bram_1->getParam (RTLIL::escape_id (" INIT" )));
254256
255257 // Mark BRAM parts for removal
256258 cellsToRemove.push_back (bram_0);
You can’t perform that action at this time.
0 commit comments