urj_vhdl_set_entity() saved the entity name in the parts part_name.
Now that that bug is fixed, save the entity name as part_name if
the idcode matches for this file.
---
urjtag/src/bsdl/bsdl.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/urjtag/src/bsdl/bsdl.c b/urjtag/src/bsdl/bsdl.c
index afb5d635..d81e969e 100644
--- a/urjtag/src/bsdl/bsdl.c
+++ b/urjtag/src/bsdl/bsdl.c
@@ -140,10 +140,13 @@ urj_bsdl_read_file (urj_chain_t *chain, const char
*BSDL_File_Name,
result = urj_bsdl_process_elements (&jtag_ctrl, idcode);
- if (result >= 0)
+ if (result >= 0) {
+ strncpy(jtag_ctrl.part->part_name,
vhdl_parser_priv->entity_name, URJ_PART_PART_MAXLEN);
+ jtag_ctrl.part->part_name[URJ_PART_PART_MAXLEN] = '\0';
urj_bsdl_msg (proc_mode,
_("BSDL file '%s' passed BSDL stage
correctly\n"),
BSDL_File_Name);
+ }
}
else
--
2.21.0
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development