22 lines
380 B
Python
Executable File
22 lines
380 B
Python
Executable File
#!/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")
|