mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-24 05:57:28 -04:00
[dv/ibex] add support for DSim
Signed-off-by: Udi Jonnalagadda <udij@google.com>
This commit is contained in:
parent
3b0cf263ae
commit
f829915aee
3 changed files with 14 additions and 1 deletions
|
@ -88,6 +88,14 @@ def gen_xlm_makefrag():
|
|||
|
||||
return 'COMPILE_OPTS += {0}'.format(xlm_compile_opts)
|
||||
|
||||
def gen_dsim_makefrag():
|
||||
dsim_compile_opts = run_ibex_config('dsim_compile_opts', [
|
||||
'--ins_hier_path', 'core_ibex_tb_top',
|
||||
'--string_define_prefix', 'IBEX_CFG_'
|
||||
])
|
||||
|
||||
return 'COMPILE_OPTS += {0}'.format(gen_dsim_makefrag)
|
||||
|
||||
|
||||
def main():
|
||||
argparser = argparse.ArgumentParser(description=(
|
||||
|
@ -98,7 +106,8 @@ def main():
|
|||
'vcs': gen_vcs_makefrag,
|
||||
'riviera': gen_riviera_makefrag,
|
||||
'xlm': gen_xlm_makefrag,
|
||||
'questa': gen_questa_makefrag
|
||||
'questa': gen_questa_makefrag,
|
||||
'dsim': gen_dsim_makefrag
|
||||
}
|
||||
|
||||
argparser.add_argument('sim',
|
||||
|
|
|
@ -84,6 +84,7 @@
|
|||
- "mkdir -p <out>/dsim"
|
||||
- "<DSIM> -sv -work <out>/dsim
|
||||
-genimage image
|
||||
-timescale 1ns/1ps
|
||||
+incdir+$UVM_HOME/src
|
||||
$UVM_HOME/src/uvm_pkg.sv
|
||||
+define+UVM
|
||||
|
|
|
@ -235,6 +235,9 @@ def main():
|
|||
SimOpts('xlm_opts', 'Xcelium compile',
|
||||
lambda p, v: '-defparam ' + p + '=' + v,
|
||||
lambda d, v: '-define ' + d + '=' + v, '.'),
|
||||
SimOpts('dsim_compile_opts', 'DSim compile',
|
||||
lambda p, v: '+define+' + p + '=' + v,
|
||||
lambda d, v: None, '/'),
|
||||
]
|
||||
|
||||
argparser = argparse.ArgumentParser(description=(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue