Class Bus
Defined in File Bus.h
Inheritance Relationships
Base Type
public Component
(Class Component)
Class Documentation
-
class Bus : public Component
A simple bus abstraction class with a primitive arbitration mechanism.
Available ports: data “slot x” where x is in range [0, portCount]. Available connectors: data “master” to access all devices on the bus.
Public Functions
-
Bus(int portCount, int addrWidth, int dataWidth)
-
virtual void init() override
Initialize a component to a default power-on state (hard reset).
Note
For Component developer: Implement a correct power-on state here.
-
virtual std::vector<EmulatorWindow> getGUIs() override
Get GUI windows: metadata and rendering functions.
Note
For Component developer: If the component have a debugger or other GUI, return an arbitrary count of windows, they will be rendered on a load of a system which contains the component.
- Returns
A vector of windows to be rendered.
-
Bus(int portCount, int addrWidth, int dataWidth)