OVP Peripheral Model: OVPTemperatureSensor
Model Specific Information
This page provides introductory usage information for an Imperas OVP peripheral behavioral model.
The page is split into sections providing specific information for this peripheral,
including any ports for connecting into a platform, registers, other component parts, and configuration options and general information for peripheral modeling with Imperas OVP.
Description
Simple test peripheral to illustrate the way in which test data can be used, in this case to display a temperature value.
A single read-only register provides a temperature value in a format in which bit 31 when set indicates a negative temperature and the value represents temperature x100.
Licensing
Open Source Apache 2.0
Reference
This is not based upon a real device
Location
The temperatureSensor peripheral model is located in an Imperas/OVP installation at the VLNV: ovpworld.org / peripheral / temperatureSensor / 1.0.
Peripheral Instance Parameters
This model accepts the following parameters:
Table : Peripheral Parameters
Name | Type | Description |
---|
inittemp | double | used to set the initial temperature reading (default 30) |
maxtemp | double | used to set the maximum temperature reached when using rate increase (default 60) |
ratechange | double | The temperature will change at a rate of degree Centigrade per second according to this parameter (default 1) |
datafile | string | Description The temperature change over time can be defined by a set of values in a file. The file format contains a simulation time and a temperature on each line in readable ascii format e.g. 10.1 27.45 indicates at time 10.1 seconds set temperature to 27.45 oC. |
httpvisportnum | uns32 | Specify the HTTP port number |
httpvisdir | string | Specify an alternative directory for visualization data |
record | string | Record external events into this file |
replay | string | Replay external events from this file |
Net Ports
This model has the following net ports:
Table 1: Net Ports
Name | Type | Must Be Connected | Description |
---|
reset | input | F (False) | Reset signal |
Bus Slave Ports
This model has the following bus slave ports:
Bus Slave Port: busPort
Table 2: Bus Slave Port: busPort
Name | Size (bytes) | Must Be Connected | Description |
---|
busPort | 0x4 | T (True) | |
Table 3: Bus Slave Port: busPort Registers:
Name | Offset | Width (bits) | Description | R/W | is Volatile |
---|
A_data | 0x0 | 32 | Temperature value data register | | |