Skip to content

Commit 8f73ad5

Browse files
committed
Merge pull request #112 from PanosNB/mcmlBug
Mcml weekly regression fail bug fix
2 parents 802dada + 6efd301 commit 8f73ad5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

ODIN_II/SRC/output_blif.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,11 @@ void define_logical_function(nnode_t *node, short type, FILE *out)
457457
(net->driver_pin->node->type == MINUS) )
458458
{
459459
fprintf(out, " %s", net->driver_pin->name);
460-
}
460+
}
461+
else
462+
{
463+
fprintf(out, " %s", net->driver_pin->node->name);
464+
}
461465
}
462466
else
463467
{
@@ -637,6 +641,10 @@ void define_set_input_logical_function(nnode_t *node, const char *bit_output, FI
637641
{
638642
fprintf(out, " %s", node->input_pins[i]->net->driver_pin->name);
639643
}
644+
else
645+
{
646+
fprintf(out, " %s", node->input_pins[i]->net->driver_pin->node->name);
647+
}
640648
}
641649
else
642650
{
@@ -763,6 +771,10 @@ void define_decoded_mux(nnode_t *node, FILE *out)
763771
{
764772
fprintf(out, " %s", net->driver_pin->name);
765773
}
774+
else
775+
{
776+
fprintf(out, " %s", net->driver_pin->node->name);
777+
}
766778
}
767779
else
768780
{

0 commit comments

Comments
 (0)