amaranth-soc icon indicating copy to clipboard operation
amaranth-soc copied to clipboard

Make optional properties return None while uninitialized.

Open jfng opened this issue 4 years ago • 1 comments

The previous behaviour was to raise a NotImplementedError. It is now the responsibility of the caller to check if the property was initialized or not.

Affected properties:

  • wishbone.Interface.memory_map
  • csr.Interface.memory_map
  • event.Source.event_map
  • periph.PeripheralInfo.irq

jfng avatar Aug 22 '20 01:08 jfng

Related to https://github.com/nmigen/nmigen-soc/pull/19#discussion_r455600061.

jfng avatar Aug 22 '20 01:08 jfng