-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for lazy Decoder/Multiplexer interface creation. (#7)
Before this commit, the bus interface of a Decoder or a Multiplexer would be created during __init__. A bus interface would always be tied to an underlying memory map. After this commit, the following changes are introduced: * The bus interface of a Decoder (or a Multiplexer) is lazily created upon request. This allows the record fields of the bus interface to be up-to-date with any address space extension that may have occured. * The memory_map attribute of a bus interface is no longer assigned during __init__. It is instead assigned externally at a later time. Decoupling the memory map from the bus interface allows a Decoder (or a Multiplexer) to first create the memory map, extend it, and then use it to create the bus interface, once requested. * Decoder.add(extend=True) (or Multiplexer.add) can be used to add a window (or resource) that would otherwise not fit inside its underlying memory map.
- Loading branch information
Jean-François Nguyen
authored
Feb 10, 2020
1 parent
987aeb0
commit f8f8982
Showing
5 changed files
with
269 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.