I will upload my new book, "Write My Own processor" (not yet published), today is the third article. I try four articles a week.MIPS instruction set architecture since the advent of the 80 's. has been upgrading, from the initial MIPS I to MIPS V, to support the expansion module MIPS32, MIPS64 series, and integrated code compression technology microMIPS32, microM
MIPs instruction set architecture
The instruction set architecture ISA is fully called the instruction set architecture. MIPS has been continuously expanded since it was proposed in 1988. Its ISA is roughly as follows:
MIPs IThis
Detailed instructions are given below:
$: That is $zero, the register always returns zero, providing a concise coding form for the useful constant of 0.
Move $t 0, $t 1
Actually for
Add $t 0,$0, $t 1
Using pseudo-directives can simplify tasks, and assembler provides a richer set of instructions than hardware.
$: That is $at, the Register is reserved for assembly, because the immediate number field of type I instruction is only 16 bits, whe
a single operation of the MIPS CPU can load or store 1 to 8 bytes of data. The multiplication result registers are interlocked (interlocked) Because the result of the multiplication is not enough to allow the next instruction to automatically get the result. Attempting to read the result register before the multiplication operation completes causes the CPU to stop running until it is complete. One of the go
Register:Register number Symbol Name purpose0 always 0 looks like a waste, actually very useful1 at reserved for assembler use2-3 v0,v1 function return value4-7 a0-a3 several function parameters8-15 t0-t7 Temporary Register, sub-process can be used without saving24-25 T8,t9 Ibid.16-23 S0-S7 Register variable, a sub-procedure must be saved before it can be usedThen recover before exiting to retain the value required by the caller26,27 K0,K1 reserved for exception handling function useGP global po
: Watch, memory breakpoint exception. It works when two registers watchlo/watchhi are set. When the virtual address of load/store matches with watchlo/watchhi, this exception occurs./* this local classic book "see MIPS run" makes a mistake, write the virtual address as a physical address */24 ~ 30. reserved for future extension;
EPC: this register is used to save the instruction address when an exception oc
Some problems encountered during the compilation of MIPS-Based C language compiler programs, mips Compiler
When I used Java to write a C-(simplified C Language) compiler, I encountered a long problem: After testing C-code input and executing parser and typechecking, A complete MIPS code is successfully compiled. However, when the
Instruction length and number of registersAll MIPS commands are 32-bit, and the Instruction format is simple. Unlike x86, The x86 instruction length is not fixed. Take 80386 as an example,The instruction length can be 1 byte (for example, push) to 17 bytes.CodeThe density is
mode)
5. A streamlined but fast dual-priority interrupt sub-system with a temporary memory group that can be switched
Today, the arm family occupies all 32-bit embeddedProcessor75%, making it the most 32-bit dollar in the worldArchitecture. ArmProcessorFrom portable devices (PDAs, mobile phones, multimedia players, handheld video games, and computers) to computer peripheral devices (hard disks and desktop routers) it even exists in missile-carrying computers and other military facilities.
Http://blogold.chinaunix.net/u1/40363/showart_434186.htmlchapter I MIPS CPU Architecture Overview
Chen Huai Lin
1. Preface
This article introduces the MIPS architecture, focusing on its register conventions, MMU and storage management, exception and interrupt handling, and so on.
Through this article, we hope to provide a basic concept of contour for readers who are interested in
Http://blog.csdn.net/menuconfig/archive/2007/08/23/1756082.aspx
This chapter will show you how to read and write the assembly code under the MIPs system. The MIPs assembly code looks very different from the actual code because of the following reasons:
1. MIPS assembler compiler provides a large number of predefined macro commands (extra macro-
microprocessor architectures: MIPS I and MIPS II. The MIPS instruction set is rapidly becoming the benchmark of RISC, which focuses on the design principle of simplifying instruction set, providing higher performance with lower power consumption and smaller area. Many initi
Because ECOs needs MIPS-elf-GCC to compile the kernel, the GCC compiler of the latest gcc4.4.1 version is compiled today. The steps are as follows:
First, you must export the following variables before compiling:
Export target = MIPS-elf
Export prefix =/usr/local/$ Target
Export Path = $ path: $ prefix/bin
Echo $ Target
Echo $ prefix
Echo $ path
==============================
Compiling environment: fc9
Th
Http://blog.yaabou.com /? P = 96
Note that MIPs has the pipeline visibility, so the next command following the jump command will be executed before the jump is executed. This is called Branch latency. However, the compiler hides this feature, but you can set ". Set noreorder" to disable the compiler from reorganizing the code order.
Each Board has its own lDs file. This is mainly used to describe the instructions generated by the compilation and the
The instruction set can be divided into complex instruction set (CISC) and thin instruction set (RISC) two parts, representing the architecture are x86 (CISC),ARM and MIPS (RISC)respectively.arm- RISC is a chip system designed to improve processor speed, and its key technology is to complete multiple instructions in
In order to compile the program on the computer composition and design-hardware/software interface, however, GCC on UbuntuX86 can only be compiled into the X86 assembly.
Sourcery codebench out a gcc toolchain for compiling to the MIPS assembler.
Our usual compilation, called Local compilation, is compiled into a compilation under the current platform. Instead, cross-compilation can be compiled into other platforms (the platform of the compiled platfor
Tags: des blog Io ar OS use SP for div
1. pipeline structure Pipeline-MIPs is one of the simplest architectures, so the university prefers to choose mips architecture to introduce the computing architecture course.-Arm has Barrel ShifterShifter has two sides. On the one hand, it can improve the speed of mathematical logic operations, and on the other hand, it also increases the complexity of hardware. The
1. pipeline structure Pipeline-MIPs is one of the simplest architectures, so the university prefers to choose mips architecture to introduce the computing architecture course.-Arm has Barrel ShifterShifter has two sides. On the one hand, it can improve the speed of mathematical logic operations, and on the other hand, it also increases the complexity of hardware. Therefore, it is more efficient than adder/s
Using JavaScript to simulate MIPS multiplication, mips Multiplication
This example describes how to simulate MIPS multiplication in JavaScript. Share it with you for your reference. The details are as follows:
I hope this article will help you design javascript programs.
I will upload my new book "Write CPU by myself" (not published yet). Today is 13th articles. I try to write them every Thursday.
4.4 create the MIPs compiling environment
The openmips processor is designed to be compatible with the mips32 instruction set architecture. Therefore, you can use the existing GNU development tool chain under the mips32 architecture. This section describes how to install and use
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.