Clock and Reset Types
Clock and Reset Types.
- :any:
ClkType- Clock - :any:
RstAType- Asynchronous Reset (High-Active) - :any:
RstAnType- Asynchronous Reset (Low-Active) - :any:
RstType- Synchronous Reset (High-Active) - :any:
ClkRstAnType- Clock and Async Reset Pair - :any:
DiffClkType- Differential Clock - :any:
DiffClkRstAnType- Differential Clock and Async Reset
ClkType
Bases: BitType
Clock Type.
Single bit used as clock.
import ucdp as u clk = u.ClkType() clk ClkType() clk.width 1
RstAType
Bases: AEnumType
Async high-active Reset Type.
Single bit used as asynchronous reset.
import ucdp as u rst = u.RstAType() rst RstAType() rst.width 1 for item in rst.values(): ... print(repr(item)) EnumItem(0, 'inactive', doc=Doc(title='Reset not active')) EnumItem(1, 'active', doc=Doc(title='Reset active'))
RstAnType
Bases: AEnumType
Async low-active Reset Type.
Single bit used as asynchronous low-active reset.
import ucdp as u rst = u.RstAnType() rst RstAnType() rst.width 1 for item in rst.values(): ... print(repr(item)) EnumItem(0, 'active', doc=Doc(title='Reset active')) EnumItem(1, 'inactive', doc=Doc(title='Reset not active'))
RstType
Bases: AEnumType
Sync Reset.
Single bit used as synchronous reset.
import ucdp as u rst = u.RstType() rst RstType() rst.width 1 for item in rst.values(): ... print(repr(item)) EnumItem(0, 'inactive', doc=Doc(title='Reset not active')) EnumItem(1, 'active', doc=Doc(title='Reset active'))
ClkRstAnType
Bases: AStructType
Clock, Async Reset Pair.
import ucdp as u clkrst = u.ClkRstAnType() for item in clkrst.values(): ... print(repr(item)) StructItem('clk', ClkType(), doc=Doc(title='Clock')) StructItem('rst_an', RstAnType(), doc=Doc(title='Async Reset', descr='Low-Active', comment='Async Reset ...'))
DiffClkType
Bases: AStructType
Differential Clock.
import ucdp as u diffclk = u.DiffClkType() for item in diffclk.values(): ... print(repr(item)) StructItem('p', ClkType(), doc=Doc(title='Clock')) StructItem('n', ClkType(default=1), doc=Doc(title='Inverted Clock'))
DiffClkRstAnType
Bases: AStructType
Differential Clock and Reset.
import ucdp as u diffclkrst = u.DiffClkRstAnType() for item in diffclkrst.values(): ... print(repr(item)) StructItem('clk', DiffClkType(), doc=Doc(title='Differential Clock')) StructItem('rst_an', RstAnType(), doc=Doc(title='Async Reset', descr='Low-Active', comment='Async Reset ...'))