typecheck + fanout/fanin
This commit is contained in:
19
src/peakrdl_busdecoder/cpuif/fanout_gen.py
Normal file
19
src/peakrdl_busdecoder/cpuif/fanout_gen.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from systemrdl.node import AddressableNode
|
||||
from systemrdl.walker import WalkerAction
|
||||
|
||||
from ..design_state import DesignState
|
||||
from ..listener import BusDecoderListener
|
||||
from .base_cpuif import BaseCpuif
|
||||
|
||||
|
||||
class FanoutGenerator(BusDecoderListener):
|
||||
def __init__(self, ds: DesignState, cpuif: BaseCpuif) -> None:
|
||||
super().__init__(ds)
|
||||
self._cpuif = cpuif
|
||||
|
||||
def enter_AddressableComponent(self, node: AddressableNode) -> WalkerAction | None:
|
||||
action = super().enter_AddressableComponent(node)
|
||||
return action
|
||||
|
||||
def exit_AddressableComponent(self, node: AddressableNode) -> None:
|
||||
super().exit_AddressableComponent(node)
|
||||
Reference in New Issue
Block a user