CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
test_codegen.TypedReadChannelStruct Class Reference
Inheritance diagram for test_codegen.TypedReadChannelStruct:
Inheritance graph
[legend]
Collaboration diagram for test_codegen.TypedReadChannelStruct:
Collaboration graph
[legend]

Public Member Functions

 construct (ports)
 

Static Public Attributes

 clk = Clock()
 
 rst = Reset()
 
 num_events = Constant(UInt(8), 4)
 

Detailed Description

To-host channel of `EventStruct`: TypedReadPort polling of a struct.

Hardware pushes a small bounded sequence of distinct events on reset
release so the driver can read N items and check exact values. Each event
has ``ts = i+1`` and ``val = -(i+1)`` so an off-by-one or sign bug shows
up immediately.

Definition at line 195 of file test_codegen.py.

Member Function Documentation

◆ construct()

test_codegen.TypedReadChannelStruct.construct (   ports)

Definition at line 210 of file test_codegen.py.

References wrap().

Member Data Documentation

◆ clk

test_codegen.TypedReadChannelStruct.clk = Clock()
static

Definition at line 204 of file test_codegen.py.

Referenced by esiaccel.bsp.common.ESI_Manifest_ROM_Wrapper.build().

◆ num_events

test_codegen.TypedReadChannelStruct.num_events = Constant(UInt(8), 4)
static

Definition at line 207 of file test_codegen.py.

◆ rst

test_codegen.TypedReadChannelStruct.rst = Reset()
static

Definition at line 205 of file test_codegen.py.


The documentation for this class was generated from the following file: