AN1154 STMicroelectronics, AN1154 Datasheet - Page 61

no-image

AN1154

Manufacturer Part Number
AN1154
Description
8031-PSD DESIGN TUTORIAL
Manufacturer
STMicroelectronics
Datasheet
The tutor8xx.stl file consists of four sections:
1. Parameter Definitions: each of the M88 FLASH+PSD control registers has an I/O address (offset from
2. User-defined tasks: these are used to define and implement the microcontroller bus cycles. In each
3. Signal Initialization: you must specify the initial logic level of all the input signals before simulation. The
4. The stimulus inputs: here the stimulus inputs are needed to perform MCU read or write bus cycles to
//Title:tutor8XX.stl
//Function:Simulation file for the M88x3Fxx Tutorial
//Designed by:Dan Harris
//Design Date:6-23-98
//Description:This file is intended to be used in the PSDsilosIII environment as a
//
//
//
//
//
//
//
//
//
//
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++
// Parameters declarations for the address offsets for the CSIOP address space
//
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++
//Port A
parameter Port_A_Dir_Reg=’h0906,Port_A_Cntl_Reg =’h0902;
parameter Port_A_Dout_Reg=’h0904,Port_A_Din_Reg =’h0900;
parameter Port_A_IMC=’h090A,Port_A_Drive_Sel = ’h0908;
parameter Port_A_En_Out=’h090C;
//Port B
the CSIOP base address). The parameters make the stimulus file easier to read.
task, the timing of the control signals and address or data bus should follow that of the microcontroller,
but they do not have to be exact; they just have to be to scale. The PSD Simulator will simulate a bus
cycle every time a read, write, or psen task is called.
output signals that you want to simulate should be initialized to a high impedance state.
access the Flash, EEPROM, SRAM or I/O ports. Inputs can also be generated to exercise the CPLD
functions.
stimulus file for the M88x3Fxx Tutorial. The idea of this file is not
to show how the Verilog-HDL language works, but rather the format of
a .stl file, and how it applies to this tutorial example.
The main parts of this file are:
* Parameter declarations which make the file more readable
* Read, write and "PSEN/" bus cycle tasks for the 80C31
* An area where the user may wish to add to the file in order to
* The actual stimulus of the design
test more functions
APPENDIX B: STIMULUS FILE “ TUTOR8XX.STL”
AN1154 - APPLICATION NOTE
61/83

Related parts for AN1154