4 Commits

Author SHA1 Message Date
Byron Lathi
983e3f76f3 Add timing option
todo: add args from yaml
2025-07-16 22:28:36 -07:00
Byron Lathi
443a99e477 Filter out only verilog sources (and verilator lint files) 2025-03-29 19:39:35 -07:00
Byron Lathi
85d3435fe8 Merge branch 'experimental/incdirs' into 'master'
Experimental/incdirs

See merge request bslathi19/fpga-sim!3
2025-03-21 05:45:28 +00:00
Byron Lathi
1b1d3f8def Experimental/incdirs 2025-03-21 05:45:28 +00:00
3 changed files with 14 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ name = "fpga-sim" # REQUIRED, is the only field that cannot be marked as dynami
# https://packaging.python.org/guides/single-sourcing-package-version/
# dynamic = ["version"]
version = "0.2.2" # REQUIRED, although can be dynamic
version = "0.3.2" # REQUIRED, although can be dynamic
# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
@@ -123,7 +123,7 @@ classifiers = [
dependencies = [
"pyyaml",
"cocotb",
"rtl-manifest"
"rtl-manifest>=0.3.1"
]
# List additional groups of dependencies here (e.g. development

View File

@@ -1,4 +1,8 @@
-i https://git.byronlathi.com/api/v4/projects/95/packages/pypi/simple
setuptools
wheel
build
twine
cocotb
rtl-manifest
pyyaml

View File

@@ -1,5 +1,3 @@
from ast import parse
from email.mime import base
import os
import sys
@@ -95,14 +93,19 @@ def fpga_sim_main():
# Turn this into a multiprocessing pool
for test in tests_to_run:
sources = rtl_manifest.read_sources(f"{test['base_path']}/{test['sources']}")
sources, incdirs = rtl_manifest.parse(f"{test['base_path']}/{test['sources']}")
verilog_sources = list(filter(lambda s: (s.endswith(".v") or s.endswith(".sv") or s.endswith(".vlt")), sources))
runner.build(
verilog_sources=sources,
verilog_sources=verilog_sources,
includes=incdirs,
hdl_toplevel=test["toplevel"],
build_dir=f"{test['base_path']}/sim_build",
waves=test["waves"],
defines=defines
defines=defines,
build_args=["--timing"]
)
result_xml = f"../sim_build/{test['name']}_results.xml".replace(" ", "_")