posts - 71,  comments - 41,  trackbacks - 0

昨儿个读了《Write Greate Code》Volume1: Understanding the Machine
想通了很久困惑的问题,受益匪浅,贴图以共享

1. 约翰.冯.诺伊曼体系结构(Von Neumann Architecture,VNA)
VNA.JPG
2.内存物理组织
Read
Read.JPG
Write
Write.JPG
3.地址总线
8bit
8bit.JPG
16bit
Say more here, there are a concept named bank which confused me when I read <Intel Architecture Software Developer's Manual>. The physical memory is organized into two banks, even and odd, in 16 bits data addr bus.
So, 16 bits x86 CPUs always put even addr on the addr bus, and if they access odd addr, the CPUs must op memory twice. 
16bit.JPG

32bits
As with 16 bits, 32bits x86 CPUs always put 4X addr on their addr bus. 
32bit.JPG
4. Byte Genders
Little Endian

LittleEndian.JPG

Big Endian
BigEndian.JPG

5. System Clock

SysClock.JPG
6. 内存访问
内存访问时间:从CPU讲地址放到地址总线上开始到CPU从数据总线上取得数据之间的时间。
x86 CPU,具有单周期内存访问时间
X86MemAccessCycle.JPG
等待状态——(CPU)别跑那么快,等等我(IO)
WaitState.JPG

Cache-引用的时空局部特性(temporal and spatial locality of reference)
Cache.JPG


7. 内存寻址模式
直接(direct), 间接(indirect), 变址(indexed), 比例变址(scaled indexed)

8. 内存层次结构(hierarchy)
说一下NUMA,非一致内存访问(Non-Uniform Memory Access),NUMA本来是说不同类型的内存有着不同的访问时间,此处用来描述一些电气上与主存类似,但由于其速度比主存低很多的内存。一如,显存,闪存。
MemHierarchy.JPG
So..., that's all for today :p
 

posted on 2006-11-29 11:19 Charles 阅读(684) 评论(0)  编辑 收藏 引用 所属分类: 读书作笔记

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2006年11月>
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

决定开始写工作日记,记录一下自己的轨迹...

常用链接

留言簿(4)

随笔分类(70)

随笔档案(71)

charles推荐访问

搜索

  •  

积分与排名

  • 积分 - 47995
  • 排名 - 455

最新评论

阅读排行榜

评论排行榜