cpu/Vexriscv-smp fix silent generation failure
This commit is contained in:
parent
17570f85c0
commit
92ef330c12
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from os import path
|
from os import path
|
||||||
|
import subprocess
|
||||||
|
|
||||||
from migen import *
|
from migen import *
|
||||||
|
|
||||||
|
@ -270,8 +271,8 @@ class VexRiscvSMP(CPU):
|
||||||
gen_args.append(f"--itlb-size={VexRiscvSMP.itlb_size}")
|
gen_args.append(f"--itlb-size={VexRiscvSMP.itlb_size}")
|
||||||
|
|
||||||
cmd = 'cd {path} && sbt "runMain vexriscv.demo.smp.VexRiscvLitexSmpClusterCmdGen {args}"'.format(path=os.path.join(vdir, "ext", "VexRiscv"), args=" ".join(gen_args))
|
cmd = 'cd {path} && sbt "runMain vexriscv.demo.smp.VexRiscvLitexSmpClusterCmdGen {args}"'.format(path=os.path.join(vdir, "ext", "VexRiscv"), args=" ".join(gen_args))
|
||||||
if os.system(cmd) != 0:
|
subprocess.check_call(cmd, shell=True)
|
||||||
raise OSError('Failed to run sbt')
|
|
||||||
|
|
||||||
def __init__(self, platform, variant):
|
def __init__(self, platform, variant):
|
||||||
self.platform = platform
|
self.platform = platform
|
||||||
|
|
Loading…
Reference in New Issue