basic framework

This commit is contained in:
Alex Mykyta
2021-06-01 21:51:24 -07:00
parent 292aec1c6e
commit 0d5b663f98
40 changed files with 1920 additions and 0 deletions

21
tst.py Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env python3
import sys
from systemrdl import RDLCompiler, RDLCompileError
from peakrdl.regblock import RegblockExporter
input_files = sys.argv[1:]
rdlc = RDLCompiler()
try:
for input_file in input_files:
rdlc.compile_file(input_file)
root = rdlc.elaborate()
except RDLCompileError:
sys.exit(1)
R = RegblockExporter()
R.export(root, "out.sv")