onInvalidRead property

LogicValue Function(LogicValue addr, int dataWidth) onInvalidRead
final

A function called if a read is made to an address that has no data.

By default, this will print a warning message and return x.

This is not called when a read's valid or address has invalid bits; in those cases the memory will return x always.

Implementation

final LogicValue Function(LogicValue addr, int dataWidth) onInvalidRead;