CIRCT 24.0.0git
Loading...
Searching...
No Matches
test_bsp_common Namespace Reference

Classes

class  _Bundle
class  _Bundles

Functions

 test_channel_mmio_allocations ()
 test_channel_mmio_manifest_tracks_client_space ()
 test_channel_mmio_places_manifest_after_clients ()
 test_channel_mmio_rejects_invalid_size (size)
 test_channel_mmio_rejects_address_overflow (monkeypatch)
 test_cosim_bsp_rejects_conflicting_channel_services ()
 test_channel_engine_service_connects_read_list (tmp_path)
 test_read_req_splitter_generates (tmp_path, word_bits, max_outstanding, round_read_lengths)
 test_read_req_splitter_rejects_zero_outstanding ()
 test_cosim_rejects_invalid_hostmem_width (builder, width)
 test_cosim_forwards_hostmem_width (monkeypatch, builder, width)
 test_write_gearbox_generates (tmp_path, width)

Function Documentation

◆ test_channel_engine_service_connects_read_list()

test_bsp_common.test_channel_engine_service_connects_read_list ( tmp_path)
An engine with a `hostmem_read_list` port gets a burst-read connection
to HostMem: the design compiles only if the service wires that port.

Definition at line 94 of file test_bsp_common.py.

◆ test_channel_mmio_allocations()

test_bsp_common.test_channel_mmio_allocations ( )

Definition at line 32 of file test_bsp_common.py.

◆ test_channel_mmio_manifest_tracks_client_space()

test_bsp_common.test_channel_mmio_manifest_tracks_client_space ( )
The manifest window must not be a fixed reservation: it follows whatever
the clients actually use so the BAR stays as small as possible.

Definition at line 46 of file test_bsp_common.py.

◆ test_channel_mmio_places_manifest_after_clients()

test_bsp_common.test_channel_mmio_places_manifest_after_clients ( )

Definition at line 59 of file test_bsp_common.py.

◆ test_channel_mmio_rejects_address_overflow()

test_bsp_common.test_channel_mmio_rejects_address_overflow ( monkeypatch)

Definition at line 77 of file test_bsp_common.py.

◆ test_channel_mmio_rejects_invalid_size()

test_bsp_common.test_channel_mmio_rejects_invalid_size ( size)

Definition at line 72 of file test_bsp_common.py.

◆ test_cosim_bsp_rejects_conflicting_channel_services()

test_bsp_common.test_cosim_bsp_rejects_conflicting_channel_services ( )

Definition at line 83 of file test_bsp_common.py.

◆ test_cosim_forwards_hostmem_width()

test_bsp_common.test_cosim_forwards_hostmem_width ( monkeypatch,
builder,
width )

Definition at line 233 of file test_bsp_common.py.

◆ test_cosim_rejects_invalid_hostmem_width()

test_bsp_common.test_cosim_rejects_invalid_hostmem_width ( builder,
width )

Definition at line 222 of file test_bsp_common.py.

◆ test_read_req_splitter_generates()

test_bsp_common.test_read_req_splitter_generates ( tmp_path,
word_bits,
max_outstanding,
round_read_lengths )
Build and compile `HostMemReadReqSplitter` for a range of word widths
and outstanding-request limits (no simulation).

Definition at line 173 of file test_bsp_common.py.

References Input, and Output.

◆ test_read_req_splitter_rejects_zero_outstanding()

test_bsp_common.test_read_req_splitter_rejects_zero_outstanding ( )

Definition at line 209 of file test_bsp_common.py.

◆ test_write_gearbox_generates()

test_bsp_common.test_write_gearbox_generates ( tmp_path,
width )

Definition at line 260 of file test_bsp_common.py.

References Input, and Output.