Skip to content

Commit

Permalink
SV files generation (#31)
Browse files Browse the repository at this point in the history
SV files generation: Added test files creation

- Creates a testbench that includes all generated regmap files
- Creates bash script to run simulation
- Moved from parameterized classes to parameterization at creation
- Added missing reset value locking mechanism
- Added parameter definiton header file creation together with the regmaps
- Created arrays of repeating registers with calculated addressing

Signed-off-by: Istvan-Zsolt Szekely <[email protected]>
  • Loading branch information
IstvanZsSzekely authored Feb 7, 2025
1 parent 484caf3 commit 7ffefba
Show file tree
Hide file tree
Showing 7 changed files with 417 additions and 202 deletions.
4 changes: 3 additions & 1 deletion adi_doctools/cli/hdl_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from ..parser.hdl import resolve_hdl_project
from ..parser.hdl import parse_hdl_interfaces
from ..writer.hdl import write_hdl_regmap
from ..writer.hdl import write_hdl_regmap_test
from ..writer.hdl import write_hdl_library_makefile
from ..writer.hdl import write_hdl_project_makefile

Expand Down Expand Up @@ -204,6 +205,7 @@ def regmap_pre() -> Dict:


def regmap_post(rm: Dict) -> None:
f_ = path.join('testbenches', 'common', 'sv')
f_ = path.join('testbenches', 'library', 'regmaps')
for m in rm:
write_hdl_regmap(f_, rm[m]['subregmap'], m)
write_hdl_regmap_test(f_, rm)
Loading

0 comments on commit 7ffefba

Please sign in to comment.