URL
https://opencores.org/ocsvn/tv80/tv80/trunk
Subversion Repositories tv80
Compare Revisions
- This comparison shows the changes necessary to convert path
/tv80/trunk
- from Rev 101 to Rev 102
- ↔ Reverse comparison
Rev 101 → Rev 102
/sc_env/app_localcfg/build.py
0,0 → 1,41
#!/usr/bin/python |
|
import os,sys |
from stat import * |
|
filelist = ["lcfg.v","tv80_alu.v","tv80_core.v", |
"tv80_mcode.v","tv80_reg.v","tv80s.v", |
"lcfg_cfgo_regs.v","lcfg_memctl.v", |
"lcfg_cfgo_driver.v","behave1p_mem.v"] |
basepath = "../../rtl" |
command = "verilator --sc --trace -O3" |
|
def walktree (top, target): |
found = "" |
for f in os.listdir(top): |
pathname = os.path.join(top, f) |
mode = os.stat(pathname)[ST_MODE] |
if S_ISDIR(mode): |
found = walktree (pathname, target) |
if (found != ''): return found |
elif S_ISREG(mode): |
if os.path.basename(f) == target: |
return pathname |
else: |
print "Skipping %s" % pathname |
return "" |
|
def run_verilator (): |
expfilelist = map(lambda x:walktree(basepath,x), filelist) |
cmd = command + " " + " ".join(expfilelist) |
print "Executing",cmd |
os.system (cmd) |
|
#f = walktree (basepath, filelist[0]) |
#print expfilelist |
#print f |
|
run_verilator() |
|
|
|