Download quicksimII_advanced_..

Transcript
Setting Up for QuickSim II
Using RAMs and ROMs
If any X's appear on the ROM address bus, the ROM
outputs all X's on the data bus.
Modelfile property value--pathname to ASCII file:
• Data and addresses must be hexadecimal or X
• Specify memory data using the form:
o address / data ; or
o low_address-high_address / data ;
• Any letter can be in upper or lower case
• Underspecifying--simulator fills in with zeros
16-bit example: FF = 00FF
Example 1: Initializing RAMs or ROMs to zero:
# 16-bit input-output
0-FFFF / 0 ; # Put zeros in all memory locations
0-ffff / f ; # Put 000F in all memory locations
Example 2: Using X in ROM or RAM modelfile:
# 16-bit input-output
00000 / 0 ;
# Put value of zero into location 0
FFXX / 1234 ; # Illegal addresses
FF00 / 1234 ; # Put value of 1234 into location FF00
FF00 / 11234 ; # Illegal data
FF00 / 12XX ; # Put value of 12XX into location FF00
1-14
QuickSim II Advanced Training Workbook, 8.5_1
November 1995