OpenCores
URL https://opencores.org/ocsvn/tv80/tv80/trunk

Subversion Repositories tv80

[/] [tv80/] [trunk/] [scripts/] [run] - Diff between revs 112 and 115

Show entire file | Details | Blame | View Log

Rev 112 Rev 115
Line 35... Line 35...
# h : help
# h : help
(options, args) = getopt.getopt (sys.argv[1:], "thcd:")
(options, args) = getopt.getopt (sys.argv[1:], "thcd:")
if len(args) == 0:
if len(args) == 0:
    print_help()
    print_help()
testname = args[0]
testname = args[0]
simulator = "vcs +v2k -full64 -R -I +vcs+lic+wait "
 
 
 
filelist = " -f env/tb.vf"
#simulator = "vcs +v2k -full64 -R -I +define+VCS=1 "
testdef  = " +incdir+env -l logs/%s.log +define+DUMPFILE_NAME=\\\"logs/%s.dump\\\" +define+PROGRAM_FILE=\\\"tests/%s.vmem\\\"" % (testname, testname, testname)
simulator = "iverilog "
 
 
 
#filelist = " -f env/tb.vf"
 
filelist = " -f env/tb_zmem.vf"
 
#testdef  = " +incdir+env -l logs/%s.log +define+DUMPFILE_NAME=\\\"logs/%s.dump\\\" +define+PROGRAM_FILE=\\\"tests/%s.vmem\\\"" % (testname, testname, testname)
 
testdef  = " +incdir+env -D DUMPFILE_NAME=\\\"logs/%s.dump\\\" -D PROGRAM_FILE=\\\"tests/%s.vmem\\\"" % (testname, testname)
 
 
for option in options:
for option in options:
    if option[0] == "-t":
    if option[0] == "-t":
        print "Adding TV80_INSTRUCTION_DECODE"
        print "Adding TV80_INSTRUCTION_DECODE"
        testdef += " +define+TV80_INSTRUCTION_DECODE=1"
        testdef += " +define+TV80_INSTRUCTION_DECODE=1"
Line 62... Line 66...
 
 
command = simulator + filelist + testdef
command = simulator + filelist + testdef
 
 
print "command:",command
print "command:",command
os.system (command)
os.system (command)
 
os.system ("./a.out")
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.