import os, sys, string, random import veri NewName = os.path.expanduser('~') sys.path.append('%s/verification_libs' % NewName) import logs Monitors = [] cycles = 0 import uartClass uart = uartClass.uartClass('tb', Monitors) uart.baudRate = 5 import axiSlave axi = axiSlave.axiSlaveClass('tb', Monitors) import controllerAluka control = controllerAluka.controllerClass('tb.dut.debugcontroller', Monitors) control.uart = uart import sequenceClass seq = sequenceClass.sequenceClass('tb', Monitors, '', [(uart, 'uart'), (axi, 'axi'), (control, 'control')]) def sequence(SeqFname): Name = logs.bin2string(SeqFname)
splitAluka.splitAlukaClass('tb.dut.split0',Auxs,'','AlukeS0') import axiProbe probe0 = axiProbe.axiProbeClass('tb.dut',Auxs,'split0_clock0_','CLK0') probe1 = axiProbe.axiProbeClass('tb.dut',Auxs,'split0_clock1_','CLK1') probes0 = axiProbe.axiProbeClass('tb.dut',-1,'slv0_','SLVX0') probes1 = axiProbe.axiProbeClass('tb.dut',-1,'slv1_','SLVX1') mon1 = axiMonitor.axiMonitorClass('tb.',-1,3,{},'slv1_') import panics drv = driverClass.driverClass('tb',Monitors) slvs = [0,0,0,0] II = 0 slvs[0] = slvs.append(axiSlave.axiSlaveClass('tb',Monitors0,'slv%s_' % II,'','SLV%d' % II)) II = 1 slvs[1] = slvs.append(axiSlave.axiSlaveClass('tb',Monitors1,'slv%s_' % II,'','SLV%d' % II)) II = 2 slvs[2] = slvs.append(axiSlave.axiSlaveClass('tb',Monitors,'slv%s_' % II,'','SLV%d' % II)) II = 3 slvs[2] = slvs.append(axiSlave.axiSlaveClass('tb',Monitors,'slv%s_' % II,'','SLV%d' % II)) mst = axiMaster.axiMasterClass('tb',Monitors,'mst0_','','MST0') drv.msts = [mst] seq = sequenceClass.sequenceClass('tb',Monitors,'',[('drv',drv),('mst0',mst)]) def pymonname(Name):
cycles = 0 GIVEUP_TIMEOUT = 10000 # how many cycles to run before retirment. import panics import axiMaster import axiSlave ma = axiMaster.axiMasterClass('tb', Monitors, 'mst0_', '', 'MA') mb = axiMaster.axiMasterClass('tb', Monitors, 'mst1_', '', 'MB') mc = axiMaster.axiMasterClass('tb', Monitors, 'mst2_', '', 'MC') md = axiMaster.axiMasterClass('tb', Monitors, 'mst3_', '', 'MD') slvs = [] for II in range(16): if (II != 9): slvs.append( axiSlave.axiSlaveClass('tb', Monitors, 'slv%s_' % II, '', 'SLV%d' % II)) import sequenceClass def sequence(TestName): Seq = logs.bin2string(TestName) seq.readfile(Seq) logs.setVar('sequence', Seq) Dir = os.path.dirname(Seq) logs.setVar('testsdir', Dir) logs.log_info('SEQUENCE %d' % len(seq.Sequence)) def pymonname(Name): logs.pymonname(Name)
NewName = os.path.expanduser('~') sys.path.append('%s/verification_libs3' % NewName) import logs Monitors = [] cycles = 0 GIVEUP_TIMEOUT = 10000 # how many cycles to run before retirment. import axiMaster import axiSlave ma = axiMaster.axiMasterClass('tb', Monitors, 'a_', '', 'MA') mb = axiMaster.axiMasterClass('tb', Monitors, 'b_', '', 'MB') mc = axiMaster.axiMasterClass('tb', Monitors, 'c_', '', 'MC') md = axiMaster.axiMasterClass('tb', Monitors, 'd_', '', 'MD') slv = axiSlave.axiSlaveClass('tb', Monitors, '', '', 'SLV') import sequenceClass seq = sequenceClass.sequenceClass('tb', Monitors, '', [('ma', ma), ('mb', mb), ('mc', mc), ('md', md), ('slv', slv)]) def pymonname(Name): logs.pymonname(Name) def sequence(TestName): Seq = logs.bin2string(TestName) seq.readfile(Seq) logs.setVar('sequence', Seq)