Skip to content

Commit 0888fd4

Browse files
committed
[Yosys+Odin]: declare the hardblock as used to print its model in the blif generation
Signed-off-by: Seyed Alireza Damghani <[email protected]>
1 parent 220fa98 commit 0888fd4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ODIN_II/SRC/BLIFReader.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,11 @@ void BLIF::Reader::create_hard_block_nodes(hard_block_models* models) {
371371
new_node->type = HARD_IP;
372372
/* specify node name */
373373
odin_sprintf(new_name, "\\%s~%ld", subcircuit_stripped_name, hard_block_number - 1);
374+
/* Declare the hard block as used for the blif generation */
375+
t_model* hb_model = find_hard_block(subcircuit_stripped_name);
376+
if (hb_model) {
377+
hb_model->used = 1;
378+
}
374379
} else {
375380
error_message(PARSE_BLIF, unknown_location,
376381
"Unsupported subcircuit type (%s) in BLIF file.\n", subcircuit_name);

0 commit comments

Comments
 (0)