basic framework
This commit is contained in:
21
tst.py
Executable file
21
tst.py
Executable 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")
|
||||
Reference in New Issue
Block a user