Skip to content

Commit 9ccef38

Browse files
mithroelms
authored andcommitted
WIP: continue and warn about metadata
1 parent 56c170a commit 9ccef38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/hlc/src/ice40_hlc.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,10 @@ void ICE40HLCWriterVisitor::visit_all_impl(const t_pb_route *top_pb_route, const
544544
if (mode->meta != nullptr) {
545545
if (mode->meta->has("hlc_property")) {
546546
for (auto v : *(mode->meta->get("hlc_property"))) {
547-
VTR_ASSERT(current_cell_ != NULL);
547+
if (current_cell_ == NULL) {
548+
std::cout << "No cell with mode " << std::string(mode->name) << std::endl;
549+
continue;
550+
}
548551
current_cell_->enable(v.as_string());
549552
}
550553
}

0 commit comments

Comments
 (0)