File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1171,8 +1171,18 @@ static void load_atom_pin_mapping(const ClusteredNetlist& clb_nlist) {
1171
1171
VTR_ASSERT_MSG (pb, " Atom block must have a matching PB" );
1172
1172
1173
1173
const t_pb_graph_node* gnode = pb->pb_graph_node ;
1174
- VTR_ASSERT_MSG (gnode->pb_type ->model == atom_ctx.nlist .block_model (blk),
1175
- " Atom block PB must match BLIF model" );
1174
+ if (strcmp (atom_ctx.nlist .block_model (blk)->name , MODEL_LATCH) == 0 ) {
1175
+ if (atom_ctx.nlist .block_model (blk)->inputs ->trigg_edge == TriggeringEdge::FALLING_EDGE) {
1176
+ VTR_ASSERT_MSG (gnode->pb_type ->model_sec == atom_ctx.nlist .block_model (blk),
1177
+ " Atom block PB must match BLIF model" );
1178
+ } else {
1179
+ VTR_ASSERT_MSG (gnode->pb_type ->model == atom_ctx.nlist .block_model (blk),
1180
+ " Atom block PB must match BLIF model" );
1181
+ }
1182
+ } else {
1183
+ VTR_ASSERT_MSG (gnode->pb_type ->model == atom_ctx.nlist .block_model (blk),
1184
+ " Atom block PB must match BLIF model" );
1185
+ }
1176
1186
1177
1187
// Always assign primary pins
1178
1188
t_pb_graph_pin* pins;
You can’t perform that action at this time.
0 commit comments