Move the type information from the names into metadata. This metadata was originally encoded in the name as there was nowhere else to store it. Now that VPR has metadata support, we should store the information there. Fixes #561. Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/vlog_to_pbtype.py b/vlog_to_pbtype.py index 5df87fc..3b9b1e0 100755 --- a/vlog_to_pbtype.py +++ b/vlog_to_pbtype.py
@@ -125,18 +125,18 @@ # Process type and class of module mod_cls = mod.CLASS if mod_cls == "routing": - return "BEL_RX-" + mod.name + return mod.name elif mod_cls == "mux": - return "BEL_MX-" + mod.name + return mod.name elif mod_cls == "flipflop": - return "BEL_FF-" + mod.name + return mod.name elif mod_cls == "lut": - return "BEL_LT-" + mod.name + return mod.name elif is_blackbox and not has_modes: - return "BEL_BB-" + mod.name + return mod.name else: #TODO: other types - return "BLK_IG-" + mod.name + return mod.name def strip_name(name):