Improve template path handling. Add synthesis tests

This commit is contained in:
Alex Mykyta
2022-02-23 22:53:54 -08:00
parent e7e941d27b
commit 5324b594bf
32 changed files with 274 additions and 162 deletions

View File

@@ -1,18 +1,18 @@
from typing import Type, TYPE_CHECKING, List
if TYPE_CHECKING:
from ..regblock_testcase import RegblockTestCase
from ..sim_testcase import SimTestCase
class Simulator:
def __init__(self, testcase_cls: 'Type[RegblockTestCase]' = None, testcase_cls_inst: 'RegblockTestCase' = None) -> None:
def __init__(self, testcase_cls: 'Type[SimTestCase]' = None, testcase_cls_inst: 'SimTestCase' = None) -> None:
self.testcase_cls = testcase_cls
self.testcase_cls_inst = testcase_cls_inst
@property
def tb_files(self) -> List[str]:
files = []
files.extend(self.testcase_cls.cpuif.get_tb_files())
files.extend(self.testcase_cls.cpuif.get_sim_files())
files.append("regblock_pkg.sv")
files.append("regblock.sv")
files.append("tb.sv")