Fixing target dependancy bug
call setup_target whenever the target is set regardless where it came from, this is important, since for the remote connection, we are driving through json,  not commandlione. This was a conceptual bug that would have been caught later...
@@ -198,14 +198,6 @@ def main():
#Create one (or many...) instances of Chip class
chip = sc.Chip(loglevel=loglevel)
- # Loading target specific module settings
- if 'target' in cmdlinecfg.keys():
- target = cmdlinecfg['target']['value'][-1]
- else:
- target = "freepdk45"
- chip.add('target', target)
- setup_target(chip)
-
# Reading in config files specified at command line
if 'cfgfile' in cmdlinecfg.keys():
for cfgfile in cmdlinecfg['cfgfile']['value']:
@@ -214,6 +206,10 @@ def main():
#Override cfg with command line args
chip.mergecfg(cmdlinecfg)
+ #Setup target if specified
+ if len(chip.cfg['target']['value']) > 0:
+ setup_target(chip)
+
#Resolve as absolute paths (should be a switch)
#chip.abspath()
