PROGRAMMING ENVIRONMENT
3-6
3.3
MEMORY-MAPPED CONTROL REGISTERS
The i960 Jx processor gives software the interface to easily read and modify internal control
registers. Each of these registers is accessed as a 32-bit memory-mapped register (MMR) with a
unique memory address. The processor ensures that accesses to MMRs do not generate external
bus cycles.
3.3.1
Memory-Mapped Registers (MMR)
Portions of the i960 Jx processor address space (addresses FF00 0000H through FFFF FFFFH) are
reserved for memory-mapped registers (see
section 12.3, “Architecturally Reserved Memory
Space” (pg. 12-9)
. These memory-mapped registers (MMRs) are accessed through word-operand
memory instructions (
ld
and
st
instructions) and some register class instructions (
atmod
,
atadd
and
sysctl
). Accesses to the MMRs do not generate external bus cycles. The latency in accessing
each of these registers is one cycle for
ld
and
st
and multiple cycles for others.
Each register has an associated access mode (user and supervisor modes) and access type (read
and write accesses).
Table 3-4
and
Table 3-5
show all the memory-mapped registers and the
application modes of access.
The registers are partitioned into user and supervisor spaces based on their addresses. Addresses
FF00 0000H through FF00 7FFFH are allocated to user space memory-mapped registers;
Addresses FF00 8000H to FFFF FFFFH are allocated to supervisor space registers.
3.3.1.1
Restrictions on Instructions that Access Memory-Mapped Registers
The majority of memory-mapped registers can be accessed by both load (
ld
) and store (
st
) instruc-
tions. However some registers have restrictions on the types of access they allow. To ensure correct
operation, the access type restrictions for each register should be followed. The access type
columns of
Table 3-4
and
Table 3-5
indicate the allowed access types for each register.
Unless otherwise indicated by its access type, the modification of a memory-mapped register by a
st
instruction takes effect completely before the next instruction starts execution.
Some operations require an atomic-read-modify-write sequence to a register, most notably IPND
and IMSK. The
atmod
and
atadd
instructions provide a special mechanism to quickly modify the
IPND and IMSK registers in an atomic manner on the i960 Jx processor. Do not use these
instruction on any other memory-mapped registers.
The
sysctl
instruction can also modify the contents of a memory-mapped register atomically; in
addition,
sysctl
is the only method to read the breakpoint registers on the i960 Jx processor; the
breakpoints cannot be read using a
ld
instruction.
Содержание i960 Jx
Страница 1: ...Release Date December 1997 Order Number 272483 002 i960 Jx Microprocessor Developer s Manual ...
Страница 24: ......
Страница 25: ...1 INTRODUCTION ...
Страница 26: ......
Страница 35: ...2 DATA TYPES AND MEMORY ADDRESSING MODES ...
Страница 36: ......
Страница 46: ......
Страница 47: ...3 PROGRAMMING ENVIRONMENT ...
Страница 48: ......
Страница 73: ...4 CACHE AND ON CHIP DATA RAM ...
Страница 74: ......
Страница 85: ...5 INSTRUCTION SET OVERVIEW ...
Страница 86: ......
Страница 111: ...6 INSTRUCTION SET REFERENCE ...
Страница 112: ......
Страница 195: ...INSTRUCTION SET REFERENCE 6 83 6 Opcode mov 5CCH REG movl 5DCH REG movt 5ECH REG movq 5FCH REG See Also LOAD STORE lda ...
Страница 233: ...7 PROCEDURE CALLS ...
Страница 234: ......
Страница 256: ......
Страница 257: ...8 FAULTS ...
Страница 258: ......
Страница 291: ...9 TRACING AND DEBUGGING ...
Страница 292: ......
Страница 309: ...10 TIMERS ...
Страница 310: ......
Страница 324: ......
Страница 325: ...11 INTERRUPTS ...
Страница 326: ......
Страница 369: ...12 INITIALIZATION AND SYSTEM REQUIREMENTS ...
Страница 370: ......
Страница 412: ......
Страница 413: ...13 MEMORY CONFIGURATION ...
Страница 414: ......
Страница 429: ...14 EXTERNAL BUS ...
Страница 430: ......
Страница 468: ......
Страница 469: ...15 TEST FEATURES ...
Страница 470: ......
Страница 493: ...A CONSIDERATIONS FOR WRITING PORTABLE CODE ...
Страница 494: ......
Страница 502: ......
Страница 503: ...B OPCODES AND EXECUTION TIMES ...
Страница 504: ......
Страница 515: ...C MACHINE LEVEL INSTRUCTION FORMATS ...
Страница 516: ......
Страница 523: ...D REGISTER AND DATA STRUCTURES ...
Страница 524: ......
Страница 550: ......
Страница 551: ...GLOSSARY ...
Страница 552: ......
Страница 561: ...INDEX ...
Страница 562: ......
Страница 578: ......