Ejemplo n.º 1
0
 def upload(self, args, serial_port, ftdi_id, sram, flash):
     var, board, arch = process_arguments(args, self.resources)
     programmer = self.get_programmer(board, serial_port, ftdi_id,
                                      sram, flash)
     var += ['prog={0}'.format(programmer)]
     return self.run('upload', var, board, arch, packages=['scons', 'yosys',
                                                           arch])
Ejemplo n.º 2
0
 def clean(self, args):
     try:
         var, board, arch = process_arguments(args, self.resources)
     except Exception:
         arch = "ice40"
         pass
     return self.run('-c', arch=arch, packages=['scons'])
Ejemplo n.º 3
0
 def lint(self, args):
     var_dummy, board, arch = process_arguments(None, self.resources)
     var = format_vars({
         'all': args.get('all'),
         'top': args.get('top'),
         'nowarn': args.get('nowarn'),
         'warn': args.get('warn'),
         'nostyle': args.get('nostyle')
     })
     return self.run('lint', var, arch=arch, packages=['scons',
                                                       'verilator',
                                                       'yosys'])
Ejemplo n.º 4
0
 def upload(self, args, serial_port, ftdi_id, sram):
     var, board = process_arguments(args, self.resources)
     programmer = self.get_programmer(board, serial_port, ftdi_id, sram)
     var += ['prog={0}'.format(programmer)]
     return self.run('upload', var, board, packages=['scons', 'icestorm'])
Ejemplo n.º 5
0
 def time(self, args):
     var, board = process_arguments(args, self.resources)
     return self.run('time', var, board, packages=['scons', 'icestorm'])
Ejemplo n.º 6
0
 def upload(self, args, serial_port, ftdi_id, sram):
     var, board = process_arguments(args, self.resources)
     programmer = self.get_programmer(board, serial_port, ftdi_id, sram)
     var += ['prog={0}'.format(programmer)]
     return self.run('upload', var, board, packages=['scons', 'icestorm'])
Ejemplo n.º 7
0
 def time(self, args):
     var, board = process_arguments(args, self.resources)
     return self.run('time', var, board, packages=['scons', 'icestorm'])
Ejemplo n.º 8
0
 def build(self, args):
     variables, board = process_arguments(args, self.resources)
     return self.run('build', variables, board, packages=['icestorm'])
Ejemplo n.º 9
0
 def time(self, args):
     var, board, arch = process_arguments(args, self.resources)
     return self.run('time', var, board, arch, packages=['scons', 'yosys',
                                                         arch])
Ejemplo n.º 10
0
 def sim(self):
     var, board, arch = process_arguments(None, self.resources)
     return self.run('sim', arch=arch, packages=['scons', 'iverilog',
                                                 'yosys', 'gtkwave'])
Ejemplo n.º 11
0
 def verify(self, args):
     var, board, arch = process_arguments(args, self.resources)
     return self.run('verify', arch=arch, packages=['scons',
                                                    'iverilog',
                                                    'yosys'])