def main(simControl): global dut inPort = dut.subUnit['alu'].ports['in_port'] # schedule arith instruction @ time = 0 inst = AluInst(OPCODE.ARITH, 2, 2, FUNCT.ADD) drive(simControl, inPort, inst, 0) # schedule mult instruction @ time = 10 inst = AluInst(OPCODE.MUL, 2, 3, None) drive(simControl, inPort, inst, 10) # schedule div instruction @ time = 20 inst = AluInst(OPCODE.DIV, 9, 3, None) drive(simControl, inPort, inst, 20)