Fujitsu CM71-00329-7E Manual De Usuario

Descargar
Página de 234
38
CHAPTER2  Dependence Functions
2.1.3
I/O Port Simulation
This section describes I/O port simulation executed.
■ I/O Port Simulation (Input Port) 
There are two types of simulations in I/O port simulation:  input port simulation, and output port
simulation.  Input port simulation has the following types:
Whenever a program reads the specified port, data is input from the pre-defined data input source.
Whenever the instruction execution cycle count exceeds the specified cycle count, data is input to the
port.
To set an input port, use the [Setup] - [Debug Environment] - [I/O Port] menu, or the SET  INPORT
command in the Command window.
Up to 4096 port addresses can be specified for the input port.  The data input source can be a file or a
terminal.  After reading the last data from the file, the data is read again from the beginning of the file.  If a
terminal is specified, the input terminal is displayed at read access to the set port.
A text file created by an ordinary text editor, or a binary file containing direct code can be used as the data
input file.  When using a text file, input the input data inside commas (,).  When using a binary file, select
the binary button in the input port dialog.
■ I/O Port Simulation (Output Port) 
At output port simulation, whenever a program writes data to the specified port, writing is executed to the
data output destination.
To set an output port, either use the [Setup] - [Debug Environment] - [I/O Port] menu, or the SET
OUTPORT command in the Command window.
Up to 4096 port addresses can be set as output ports.  Select either a file or terminal (Output Terminal
window) as the data output destination.
A destination file must be either a text file that can be referred to by regular editors, or a binary file.  To
output a binary file, select the Binary radio button in the Output Port dialog.
Note:
The following method is not supported by high-speed simulator debugger.
Whenever the instruction execution cycle count exceeds the specified cycle count, data is input to
the port.
Furthermore the setting of memory map is necessary to set I/O port.  When deleting memory map, 
I/O port is also deleted.