コード例 #1
0
ファイル: get_inst.py プロジェクト: jamesshawver1/de0nano
#!/usr/bin/python

import sys
from Module import *

if __name__ == "__main__":
  args = sys.argv
  args.pop(0)
  modules = []
  instances =""
  if(len(args) >0):
    for i in args:
      m = Module()
      m.updateFromFile(i)
      modules.append(m)
      instances = instances + m.getIntermediateNets()
    print instances
    for i in modules:
      print i
  else:
    print "pass in files to this script. the first is the top module. the rest are instances to be put in the testbench."