XFRM

class torii.hdl.xfrm.DomainCollector None

Todo

Document Me

on_ignore(value)

Todo

Document Me

on_Const(value)

Todo

Document Me

on_Signal(value)

Todo

Document Me

on_AnyValue(value)

Todo

Document Me

on_ClockSignal(value)

Todo

Document Me

on_ResetSignal(value)

Todo

Document Me

on_Operator(value)

Todo

Document Me

on_Slice(value)

Todo

Document Me

on_Part(value)

Todo

Document Me

on_Cat(value)

Todo

Document Me

on_ArrayProxy(value)

Todo

Document Me

on_Sample(value)

Todo

Document Me

on_Initial(value)

Todo

Document Me

on_Assign(stmt)

Todo

Document Me

on_Property(stmt)

Todo

Document Me

on_Switch(stmt)

Todo

Document Me

on_statements(stmts)

Todo

Document Me

on_fragment(fragment)

Todo

Document Me

class torii.hdl.xfrm.DomainLowerer(domains=None) None

Todo

Document Me

map_drivers(fragment, new_fragment)

Todo

Document Me

replace_value_src_loc(value, new_value)

Todo

Document Me

on_ClockSignal(value)

Todo

Document Me

on_ResetSignal(value)

Todo

Document Me

on_fragment(fragment)

Todo

Document Me

class torii.hdl.xfrm.DomainRenamer(**kwargs: str) None

Rename domains on given Elaboratable or Module.

The mapping is provided as a key-value pair to the constructor, where the key is the domain to remap and the value is the new domain.

Parameters:

**kwargs (str) – Domain translation mapping

Attention

You are not allowed to rename any domain to/from the combinatorial (comb) domain.

Example

m.submodules.timer = timer = DomainRenamer(sync = 'pci')(Timer())
Raises:

ValueError – When trying to rename a domain to/from comb to any other domain.

on_ClockSignal(value)

Todo

Document Me

on_ResetSignal(value)

Todo

Document Me

map_domains(fragment, new_fragment)

Todo

Document Me

map_drivers(fragment, new_fragment)

Todo

Document Me

map_memory_ports(fragment, new_fragment)

Todo

Document Me

class torii.hdl.xfrm.EnableInserter(controls) None

Inject a synchronous enable signal into the given Elaboratable.

on_fragment(fragment)

Todo

Document Me

class torii.hdl.xfrm.FragmentTransformer

Todo

Document Me

map_subfragments(fragment, new_fragment)

Todo

Document Me

map_ports(fragment, new_fragment)

Todo

Document Me

map_named_ports(fragment, new_fragment)

Todo

Document Me

map_domains(fragment, new_fragment)

Todo

Document Me

map_statements(fragment, new_fragment)

Todo

Document Me

map_drivers(fragment, new_fragment)

Todo

Document Me

map_memory_ports(fragment, new_fragment)

Todo

Document Me

on_fragment(fragment)

Todo

Document Me

class torii.hdl.xfrm.LHSGroupAnalyzer None

Todo

Document Me

find(signal)

Todo

Document Me

unify(root, *leaves)

Todo

Document Me

groups()

Todo

Document Me

on_Assign(stmt)

Todo

Document Me

on_Property(stmt)

Todo

Document Me

on_Switch(stmt)

Todo

Document Me

on_statements(stmts)

Todo

Document Me

class torii.hdl.xfrm.LHSGroupFilter(signals) None

Todo

Document Me

on_Assign(stmt)

Todo

Document Me

on_Property(stmt)

Todo

Document Me

class torii.hdl.xfrm.ResetInserter(controls) None

Inject a synchronous reset signal into the given Elaboratable.

class torii.hdl.xfrm.SampleDomainInjector(domain) None

Todo

Document Me

on_Sample(value)

Todo

Document Me

class torii.hdl.xfrm.SampleLowerer None

Todo

Document Me

on_Sample(value)

Todo

Document Me

on_Initial(value)

Todo

Document Me

map_statements(fragment, new_fragment)

Todo

Document Me

class torii.hdl.xfrm.StatementTransformer

Todo

Document Me

on_value(value)

Todo

Document Me

on_Assign(stmt)

Todo

Document Me

on_Property(stmt)

Todo

Document Me

on_Switch(stmt)

Todo

Document Me

on_statements(stmts)

Todo

Document Me

class torii.hdl.xfrm.StatementVisitor

Todo

Document Me

abstractmethod on_Assign(stmt)

Todo

Document Me

abstractmethod on_Property(stmt)

Todo

Document Me

abstractmethod on_Switch(stmt)

Todo

Document Me

abstractmethod on_statements(stmts)

Todo

Document Me

on_unknown_statement(stmt)

Todo

Document Me

replace_statement_src_loc(stmt, new_stmt)

Todo

Document Me

on_statement(stmt)

Todo

Document Me

class torii.hdl.xfrm.SwitchCleaner

Todo

Document Me

on_ignore(stmt)

Todo

Document Me

on_Assign(stmt)

Todo

Document Me

on_Property(stmt)

Todo

Document Me

on_Switch(stmt)

Todo

Document Me

on_statements(stmts)

Todo

Document Me

class torii.hdl.xfrm.TransformedElaboratable(elaboratable, *, src_loc_at=0) None

Todo

Document Me

elaborate(platform)

Todo

Document Me

class torii.hdl.xfrm.ValueTransformer

Todo

Document Me

on_Const(value)

Todo

Document Me

on_Signal(value)

Todo

Document Me

on_ClockSignal(value)

Todo

Document Me

on_ResetSignal(value)

Todo

Document Me

on_AnyValue(value)

Todo

Document Me

on_Operator(value)

Todo

Document Me

on_Slice(value)

Todo

Document Me

on_Part(value)

Todo

Document Me

on_Cat(value)

Todo

Document Me

on_ArrayProxy(value)

Todo

Document Me

on_Sample(value)

Todo

Document Me

on_Initial(value)

Todo

Document Me

class torii.hdl.xfrm.ValueVisitor

Todo

Document Me

abstractmethod on_Const(value)

Todo

Document Me

abstractmethod on_Signal(value)

Todo

Document Me

abstractmethod on_ClockSignal(value)

Todo

Document Me

abstractmethod on_ResetSignal(value)

Todo

Document Me

abstractmethod on_AnyValue(value)

Todo

Document Me

abstractmethod on_Operator(value)

Todo

Document Me

abstractmethod on_Slice(value)

Todo

Document Me

abstractmethod on_Part(value)

Todo

Document Me

abstractmethod on_Cat(value)

Todo

Document Me

abstractmethod on_ArrayProxy(value)

Todo

Document Me

abstractmethod on_Sample(value)

Todo

Document Me

abstractmethod on_Initial(value)

Todo

Document Me

on_unknown_value(value)

Todo

Document Me

replace_value_src_loc(value, new_value)

Todo

Document Me

on_value(value)

Todo

Document Me