Allow for the 'top_module' alias when sim_top or syn_top are not defined

parent a6fb09a7
......@@ -81,9 +81,15 @@ class Action(list):
self.top_entity = None
elif action == "simulation":
self.tool = load_sim_tool(self.config.get("sim_tool"))
if (self.config.get("sim_top") == None and
not self.config.get("top_module") == None):
self.config["sim_top"] = self.config["top_module"]
self.top_entity = self.config.get("sim_top")
elif action == "synthesis":
self.tool = load_syn_tool(self.config.get("syn_tool"))
if (self.config.get("syn_top") == None and
not self.config.get("top_module") == None):
self.config["syn_top"] = self.config["top_module"]
self.top_entity = self.config.get("syn_top")
else:
logging.error("Unknown requested action: %s", action)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment