User guide

CIF Peripheral Model - SimpleTimer
CoMET Version 5.9 – Tutorial 95
The CIF Peripheral Model Template
The SimpleTimer project source files are created from the CIF (Communications and
Infrastructure Fabric) Peripheral Model template. The template provides a general set of
functions and structure. We add code within the supplied template functions and structures,
and add additional functions for our specific callbacks and other requirements.
Template Functions
The table below shows functions supplied in the template. They are modified or unmodified
as shown.
Template Function Event Comment
Reset Reset port
change
Modify to handle reset of
specific ports and registers
ReadRegister Called by
BusRead
and
UntimedBus
Read
Modify to handle specific
registers and behavior
WriteRegister Called by
BusWrite and
UntimedBus
Write
Modify to handle specific
registers and behavior
BusRead Called on
read from
Bus port.
Unmodified. Handles StdBus
protocol 32 bit accesses with
4-byte width bus
transactions. This is suitable
for our model. Calls
ReadRegister.
BusWrite Called on
write to Bus
port.
Unmodified. Handles StdBus
protocol 32 bit accesses with
4-byte width bus
transactions. This is suitable
for our model. Calls
WriteRegister
UntimedReadRegisterByByte Unmodified. Used by
debugger interface
UntimedBusRead Called on
untimed read
on Bus port
Unmodified. Used by
debugger interface
UntimedWriteRegister Unmodified. Used by
debugger interface
UntimedBusWrite Called on
untimed write
on Bus port
Unmodified. Used by
debugger interface
SimpleTimerInitModuleInstance Module Unmodified. Allocates the