Skip to content

write_bus(...) doesn't check if write address is inside address range of the bus #879

@creiter64

Description

@creiter64

Hi all,

I'm not 100% if that's how it's suposed to work, but I feel like it's not.

If I declare an AXI bus master with this statement:

constant AXI4_LITE_BUS : bus_master_t := new_bus(data_length => 32, address_length => 5);

I can later perform:

write_bus(net, AXI4_LITE_BUS, 100, x"01234567");

without an error, even though 100 is outside of the 2^5=32 bytes adressable bytes on this bus. At least for me this hid an error in my testbench.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions