← Back to team overview

glaus team mailing list archive

[Blueprint bus-model] Create the hardware model for the bus.

 

Blueprint changed by Joe Pentland:

Whiteboard set to:
We agreed that the bus model will take two pointers in the constructor
which contain the registers connected to the bus.

There are a few ways the actual communication could be done:

1. Emulate SPI by swapping the contents of the variables every time the clock function is called
2. Make the bus monodirectional, where variable B always gets updated to the value of variable A, either instantly or on a clock edge. For bidirectional communication two bus classes could be used, but still represented as a single bus graphically if needed.
3. Have a function which allows you to read the contents of the other variable. Difficulty is you have to specify which one.

-- 
Create the hardware model for the bus.
https://blueprints.launchpad.net/gross/+spec/bus-model