CIRCT 24.0.0git
Loading...
Searching...
No Matches
tests.integration.test_hostmem_read._Dut Class Reference
Collaboration diagram for tests.integration.test_hostmem_read._Dut:

Public Member Functions

 __init__ (self, AcceleratorConnection conn, acc, int width)
int expected (self, int offset)
int accepted_count (self)
None issue (self, List[Tuple[int, int]] reads)
None check_responses (self, List[Tuple[int, int]] reads)

Public Attributes

 width = width
tuple stride = (width + 7) // 8
 req = dut.ports[esiaccel.AppID("req")]
 gate = dut.ports[esiaccel.AppID("gate")]
 resp = dut.ports[esiaccel.AppID("resp")]
 accepted = dut.ports[esiaccel.AppID("accepted")]
 mem = hostmem.allocate(nbytes)
 data = _pattern(nbytes)

Detailed Description

Definition at line 70 of file test_hostmem_read.py.

Constructor & Destructor Documentation

◆ __init__()

tests.integration.test_hostmem_read._Dut.__init__ ( self,
AcceleratorConnection conn,
acc,
int width )

Definition at line 72 of file test_hostmem_read.py.

Member Function Documentation

◆ accepted_count()

int tests.integration.test_hostmem_read._Dut.accepted_count ( self)

Definition at line 95 of file test_hostmem_read.py.

References accepted.

◆ check_responses()

None tests.integration.test_hostmem_read._Dut.check_responses ( self,
List[Tuple[int, int]] reads )

◆ expected()

◆ issue()

None tests.integration.test_hostmem_read._Dut.issue ( self,
List[Tuple[int, int]] reads )

Definition at line 98 of file test_hostmem_read.py.

References mem, req, and stride.

Member Data Documentation

◆ accepted

tests.integration.test_hostmem_read._Dut.accepted = dut.ports[esiaccel.AppID("accepted")]

Definition at line 79 of file test_hostmem_read.py.

Referenced by accepted_count().

◆ data

tests.integration.test_hostmem_read._Dut.data = _pattern(nbytes)

Definition at line 87 of file test_hostmem_read.py.

Referenced by expected().

◆ gate

tests.integration.test_hostmem_read._Dut.gate = dut.ports[esiaccel.AppID("gate")]

Definition at line 77 of file test_hostmem_read.py.

◆ mem

tests.integration.test_hostmem_read._Dut.mem = hostmem.allocate(nbytes)

Definition at line 86 of file test_hostmem_read.py.

Referenced by issue().

◆ req

tests.integration.test_hostmem_read._Dut.req = dut.ports[esiaccel.AppID("req")]

Definition at line 76 of file test_hostmem_read.py.

Referenced by issue().

◆ resp

tests.integration.test_hostmem_read._Dut.resp = dut.ports[esiaccel.AppID("resp")]

Definition at line 78 of file test_hostmem_read.py.

Referenced by check_responses().

◆ stride

tests.integration.test_hostmem_read._Dut.stride = (width + 7) // 8

Definition at line 74 of file test_hostmem_read.py.

Referenced by expected(), and issue().

◆ width

tests.integration.test_hostmem_read._Dut.width = width

Definition at line 73 of file test_hostmem_read.py.

Referenced by expected().


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