DeviceInterface

Parent Previous Next

Hardware Setup / DeviceInterface
Block Name: DeviceInterface

Code File Location: VisualSim/actor/arch/I_O

Description

The DeviceInterface block adds the device name to the Routing Table and maps the incoming data structures fields to the equivalent in the Processor_DS. This block has a list of required fields in the Data Structure.  If the incoming Data Structure is of type Processor_DS, then the field values can be left default.  If the incoming Data Structure has a different set of fields, the block merges this Data Structure into a Processor_DS and then places the values in the matched fields into the required Processor_DS fields. 

To understand the usage, look at the Mapping example in the BDE.

I_O


Parameter

Explanation

Type

Example

Architectural_Name

This is the name of the Architecture_Setup block that this DeviceInterface is associated. The ArchitectureSetup block maintains the routing table and statistics collection.

String

"Architecture_1"

IO_Name

This is an unique name for this DeviceInterface block. No other Architecture block in the model can have the same name. If IO_Name contains "_Map_" in the name, then the Architecture_Setup will map the incoming data structure using the Architecture_Setup Field_Name_Mapping text window, else a new Processor_DS will be generated.

String

"IO_Name"

IO_Destination

This is mapping name for the Destination field.  The entry is the Data Structure field name of the incoming Data Structure that contains the Destination address.

String

"DRAM"

IO_Command

This is mapping name for the Command field.  The entry is the Data Structure field name of the incoming Data Structure that contains the Command.

String or field name

"Read"

IO_Instruction

This is mapping name for the Instruction field.  The entry is the Data Structure field name of the incoming Data Structure that contains the Instructions.

Array of strings or field name

"A_Instruction"

IO_Priority

This is mapping name for the priority field.  The entry is the Data Structure field name of the incoming Data Structure that contains the priority integer.

Integer or field name

10

IO_Address

IO_Address is the starting memory address for this transaction.

Integer or field name

"A_Address_Min"

IO_Bytes

IO_Bytes is the data size in bytes of the transaction;

String or Integer

"A_Bytes"



Port

Explanation

input

Input port connected to the device or logic blocks.

output

Output port connected to the device or logic blocks.

to_bus

Output port connected to the Bus.

fm_bus

Input port connected to the Bus Port.




 

Created with the Personal Edition of HelpNDoc: Create cross-platform Qt Help files