ARM 的几个重要特点
ARM 采用RISC指令集
ARM: Acorn RISC Machine; //Acorn: 公司的名字
它支持的指令比較簡(jiǎn)單,所以功耗小、價(jià)格便宜,特別合適移動(dòng)設(shè)備。
RISC 和CISC的區(qū)別:
舉例子,乘加運(yùn)算,比如: y=a*b + c;
在CISC里面,有專門的乘加指令,一條指令就可以搞定;
而在RISC,有可能需要2條指令才能搞定(舉個(gè)例子而已,RISC也可能有乘加指令):
1.// T = a*b
2.// y = T+c
而CISC為了實(shí)現(xiàn)乘加指令,會(huì)設(shè)計(jì)專門的電路,所以比RISC的電路會(huì)復(fù)雜一些,從而可能會(huì)耗電多一些;ARM 采用統(tǒng)一編址體系結(jié)構(gòu)
什么是統(tǒng)一編址?這是相對(duì)獨(dú)立編址而言的。
統(tǒng)一編址和獨(dú)立編址的details,可以詳細(xì)參考如下link.
統(tǒng)一編址:Memory-mapped I/O (MMIO)
獨(dú)立編址:port-mapped I/O (PMIO) (which is also called isolated I/O)
https://en.wikipedia.org/wiki/Memory-mapped_I/O
統(tǒng)一編址簡(jiǎn)單的講,就是內(nèi)存和I/O使用相同的地址空間
Memory-mapped I/O uses the same address space to address both memory and I/O devices. The memory and registers of the I/O devices are mapped to (associated with) address values.
參考如下例子,16bit的地址總線對(duì)應(yīng)內(nèi)存的地址分配給了RAM/ROM/GPIO/Sound controller/Video controller, 內(nèi)存和外設(shè)共享相同的地址空間。
這種方式的缺點(diǎn)就是I/O占用了部分地址空間,導(dǎo)致可以分配給內(nèi)存的空間減少。比如16bit的地址總線,最大可分配的內(nèi)存空間為2^16=64K, 由于I/O占用了部分空間,可以分配給內(nèi)存的空間就會(huì)小于64K.
獨(dú)立編址:isolated I/O, 簡(jiǎn)單的講就是,內(nèi)存和I/O使用不同的地址空間,這里不再詳細(xì)描述。ARM 采用哈佛架構(gòu)
提到哈佛架構(gòu),這個(gè)得對(duì)比馮諾依曼架構(gòu)
( von Neumann architecture and a Harvard architecture)
3.1 哈佛架構(gòu)
The Harvard architecture is a computer architecture with physically separate storage and signal pathways for instructions and data.
就是指令(代碼段)和數(shù)據(jù)(數(shù)據(jù)段)分開存儲(chǔ)。
https://en.wikipedia.org/wiki/Harvard_architecture
3.2 馮諾依曼架構(gòu)
Under pure von Neumann architecture the CPU can be either reading an instruction or reading/writing data from/to the memory. Both cannot occur at the same time since the instructions and data use the same bus system. In a computer using the Harvard architecture, the CPU can both read an instruction and perform a data memory access at the same time,[1] even without a cache.
指令(代碼段)和數(shù)據(jù)(數(shù)據(jù)段)共享一個(gè)總線,指令和數(shù)據(jù)不能夠同時(shí)操作。
https://en.wikipedia.org/wiki/Von_Neumann_architecture
總結(jié)
以上是生活随笔為你收集整理的ARM 的几个重要特点的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 开头是意的成语有哪些啊?
- 下一篇: LTE MIB 的发送周期