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

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sim/] [run.py] - Blame information for rev 64

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 61 zero_gravi
#!/usr/bin/env python3
2
 
3
from pathlib import Path
4
from vunit import VUnit, VUnitCLI
5
 
6
cli = VUnitCLI()
7
cli.parser.add_argument(
8
    "--ci-mode",
9
    action="store_true",
10
    default=False,
11
    help="Enable special settings used by the CI",
12
)
13
args = cli.parse_args()
14
 
15
PRJ = VUnit.from_args(args=args)
16
PRJ.add_com()
17
PRJ.add_verification_components()
18
PRJ.add_osvvm()
19
 
20
ROOT = Path(__file__).parent
21
 
22
NEORV32 = PRJ.add_library("neorv32")
23 64 zero_gravi
NEORV32.add_source_files([
24
    ROOT / "*.vhd",
25
    ROOT / ".." / "rtl" / "**" / "*.vhd",
26
    # In VUnit <=v4.5.0, the glob search is not recursive,
27
    # hence subdir 'mem' is not picked by the previous pattern
28
    ROOT / ".." / "rtl" / "core" / "mem" / "*.vhd"
29
])
30
 
31 61 zero_gravi
NEORV32.test_bench("neorv32_tb").set_generic("ci_mode", args.ci_mode)
32
 
33
PRJ.set_sim_option("disable_ieee_warnings", True)
34
PRJ.set_sim_option("ghdl.sim_flags", ["--max-stack-alloc=256"])
35
 
36
PRJ.main()

powered by: WebSVN 2.1.0

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