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

Subversion Repositories neorv32

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

Go to most recent revision | 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
NEORV32.add_source_files([ROOT / "*.vhd", ROOT / "../rtl/**/*.vhd"])
24
NEORV32.test_bench("neorv32_tb").set_generic("ci_mode", args.ci_mode)
25
 
26
PRJ.set_sim_option("disable_ieee_warnings", True)
27
PRJ.set_sim_option("ghdl.sim_flags", ["--max-stack-alloc=256"])
28
 
29
PRJ.main()

powered by: WebSVN 2.1.0

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