无事不登三宝殿什么意思| 香港说什么语言| 戴珍珠手链有什么好处| 叶酸片什么时候吃| 脸上长扁平疣是什么原因引起的| 向日葵什么时候种| 甲状腺结节忌口什么| 甘草长什么样子图片| 骨关节疼痛什么原因| 兑卦代表什么| 牙齿发黑是什么原因| 血稠吃什么药最好| 睡觉吹气是什么原因| 外公的妈妈叫什么| 倒贴是什么意思| 月经太多是什么原因| 7月31日是什么星座| 心脏支架最怕什么| 刮痧用的油是什么油| 岑字五行属什么| 许愿是什么意思| 尹什么意思| 不吃早饭有什么危害| 男人第一次什么 感觉| yy是什么意思| 左手中指痛什么预兆| 羊水为什么叫羊水| 喜欢一个人是什么感觉| 宫颈炎和阴道炎有什么区别| 什么是追溯码| 一如既往什么意思| 神神叨叨是什么意思| 11月26是什么星座| 导管是什么意思| m代表什么单位| 普拉提是什么| 什么是玫瑰痤疮| 助产士一般什么学历| 普外科是看什么病的| upi是什么意思| 三七粉不适合什么人吃| 鱼油不适合什么人吃| 脑血栓有什么症状| 抽血后头晕是什么原因| 做梦房子倒塌什么预兆| 做飞机需要注意什么| 蟋蟀是靠什么发声的| 嘴唇周围长痘痘是什么原因导致| 用激素药有什么副作用| 揽子是什么意思| 妈妈的奶奶应该叫什么| 鲁迅的原名叫什么| 羊后马前对是什么生肖| 对牛弹琴代表什么生肖| spi是什么| 半夜胎动频繁是什么原因| 奎宁现在叫什么药| 新生儿缺氧会有什么后遗症| broom是什么意思| 土字旁的字与什么有关| 盐酸苯海索片治什么病| 早上起来流鼻血是什么原因| 早上屁多是什么原因造成的| 为什么鱼和熊掌不可兼得| 屎是什么味道| 西装裤配什么上衣| 急性结膜炎用什么眼药水| 五鬼是什么意思| 头发干枯毛躁是什么原因| 诸行无常是什么意思| 唐氏筛查高风险是什么意思| 拔牙吃什么消炎药| 日加一笔可以变成什么字| 脂肪肝是什么意思| 鬼针草长什么样| 规培证什么时候发| 盆腔少量积液是什么问题| 用印是什么意思| 为什么会得耳石症| 毛囊炎用什么药膏最好| 伤官运是什么意思| 什么叫失眠| pt是什么时间| 囗腔溃疡吃什么维生素| 什么时候洗头是最佳时间| 顾客为什么购买| 农历十月初五是什么星座| 什么的梦| 愚人是什么意思| 为什么要延迟退休| 立春吃什么| 全组副鼻窦炎什么意思| 睡眠障碍吃什么药最好| hr是什么职业| 美眉是什么意思| 生僻字什么意思| 脚一直出汗是什么原因| 世界上笔画最多的字是什么| 72年五行属什么| 女人的逼长什么样| 第一次见女方家长带什么礼物好| 干贝是什么东西| 刚满月的小狗吃什么| 什么是高钾血症| 蛋白尿吃什么药| 诸事皆宜是什么意思| 寓言故事有什么| 血液净化是什么意思| 肾结石发作有什么症状| 一什么荷叶| 你本来就很美是什么广告| 什么布料最凉快| 一品诰命夫人是什么意思| 美国现在是什么时间| 一抹多是什么意思| 老舍的原名叫什么| 起付线是什么意思| 为什么会梦到一个人| 为什么会子宫内膜增厚| 至加秦是什么字| 喉咙咳出血是什么原因| 狗皮肤病用什么药| 怀孕初期要注意什么| 次长是什么职位| 浓绿的什么| 老人吃什么水果对身体好| 封印是什么意思| 每延米是什么意思| 当志愿者有什么好处| 橙子皮泡水喝有什么好处| 9月出生的是什么星座| 南极被称为什么| 变蛋吃多了有什么好处和坏处| 过敏性咽炎吃什么药| 叻叻是什么意思| 不但而且是什么关系| 肌肉损伤吃什么药| 女人胯骨疼是什么原因| 科员是什么职务| 早搏有什么危害| 琅琊榜是什么意思| 乔其纱是什么面料| 冷面是什么面| 不是什么意思| 什么样的孕妇容易翻盘| dhc是什么牌子| 阴人是什么意思| 丙球是什么| 火车票改签是什么意思| 哥们是什么意思| 古代的天花是现代的什么病| 7月20号什么星座| 倒数是什么| zhr是什么牌子的鞋| 排骨焖什么好吃| 预科班什么意思| 绝情是什么意思| 新生儿老是打嗝是什么原因| 缺钾最明显的症状是什么| wa是什么意思| 天蓝色是什么颜色| 高血压吃什么好降压快| 五十岁是什么之年| viola是什么意思| 口渴是什么病的症状| 肺结节吃什么食物散结节最快| 杆菌是什么意思| 茵陈有什么功效| 什么啤酒好| 阴道口痒用什么药好| 血虚吃什么药| 什么是足金| 褪黑素是什么| 花椒水泡脚有什么好处| 通宵是什么意思| 狗翻肠子什么症状| 茄子不能和什么食物一起吃| 99朵玫瑰花代表什么| 公主切适合什么脸型| 宫颈纳囊用什么药治疗效果好| 你是什么| 宝宝乳糖不耐受喝什么奶粉比较好| 蛋白粉有什么功效| 附件炎吃什么药| b细胞淋巴肿瘤是一种什么病| 为什么打哈欠会流泪| 泰迪哼哼唧唧表示什么| 日本天皇姓什么| 吃什么能快速减肥| 受惊吓吃什么药| 知了猴是什么东西| 英语介词是什么意思| 什么龟最贵| 远视是什么意思| 九月24日是什么星座| 什么里什么间| 出品人是干什么的| 碟鱼是什么鱼| 蕾字五行属什么| 节育是什么意思| 干咳嗽是什么原因| 芽菜是什么菜| 爱做梦是什么原因应该怎样调理| 雨伞代表什么数字| 肝硬化什么症状| 国家为什么要扫黄| 失去自我是什么意思| 深夜里买醉是什么歌| 牙齿根管治疗是什么意思| 丽珠兰是什么| 前列腺增生用什么药好| 寓是什么意思| 静待佳音什么意思| 梦到扫地是什么意思| 木有什么意思| fdg代谢增高是什么意思| 成因是什么意思| 衣服最小码是什么字母| 蚂蚁喜欢吃什么食物| 婚托是什么意思| 摸不到心跳是什么情况| 右耳朵发热代表什么预兆| 能人是什么意思| ipv是什么| ccd是什么意思| 绿豆和什么不能一起吃| 肾上腺是什么意思| 什么是主食| 右眼皮跳是什么预兆| 痛风吃什么好| 韩束适合什么年龄段的人用| 父母都没有狐臭为什么孩子会有呢| 打喷嚏代表什么| 高亢是什么意思| 1020是什么星座| 没有力气是什么原因| 慢性阑尾炎吃什么药| 什么是碱性食物有哪些| 手机暂停服务是什么意思| 鸡炖什么补气血| 眼屎多是什么原因| 香菜吃多了有什么坏处| 胆囊病变是什么意思| gst是什么| hbsab阳性是什么意思| 盆腔炎吃什么药最好| 什么是先天之本| 8023是什么意思| 姿态万千的意思是什么| 睛可以组什么词| 梦见悬崖峭壁是什么意思| 59岁属什么| 失重感是什么感觉| 雷震子是什么神位| 三月29号是什么星座| 弥补是什么意思| 浑身发热是什么原因| 逆光是什么意思| 血热皮肤瘙痒吃什么药| 伊字五行属什么| 施食是什么意思| 陈皮泡水喝有什么功效| 垂问是什么意思| 天官是什么意思| 百度

Review of Instruction Fetch

We have discussed the common fetch sequence in previous lectures.

We have given both the sequence of microoperations and the corresponding sequence of control signals.?Remember that memory timings restrict access to memory during the
(Fetch, T1) time slot, so we elect to update the Program Counter during this time.

Fetch, T0:牋牋牋 (PC) ?/span> B1, tra1, B3 ?/span> MAR, READ.

Fetch, T1:牋牋牋 (PC) ?/span> B1, 1 ?/span> B2, add, B3 ?/span> PC.

Fetch, T2:牋牋牋 (MBR) ?/span> B2, tra2, B3 ?/span> IR.

This lecture focuses on the impact of incrementing the program counter on

牋牋牋?1)牋牋 the design of the ALU, and

牋牋牋?2)牋牋 the bus structure of the CPU.

It is immediately obvious that the ALU must have either an addition operation or an increment (add 1) operation.?For simplicity, the design uses a simple addition operation, associated with the control signal 揳dd?/b>.

We have always assumed that the CPU has three internal data busses.

We now show why such a configuration is desirable.


Constraints Due to the ALU

Recall that the ALU itself has two inputs and one output.

We consider how to create a bus structure for the CPU that will make efficient
use of this ALU.?For this discussion, we focus on the addition operation
associated with updating the PC (Program Counter).

 


One朆us Design for the CPU

The simplest design for the CPU calls for one common internal bus.

The restriction that only one binary data set can be on a single bus at
any given time gives rise to severe timing problems.

Specifically, it will take two clock pulses to put the two arguments (PC and 1)
on the bus and one clock pulse to transfer the updated value to the PC.

This one朾us design calls for two holding registers, here called 揧?and 揨?

The control signals required for this structure are:

T1:?1 ?/span> Bus, Bus ?/span> Y.

T2:?PC ?/span> Bus, add.

T3:?Z ?/span> Bus, Bus ?/span> PC.

The addition takes three clock pulses.

 

It is easy to show that a 2朾us design requires
two clock pulses to perform the addition.


Efficient Addition Requires a Three朆us Structure

With this structure, the CPU can complete the addition in one clock cycle.

This example is only one case in which the CPU design is considerably simplified
by having a three bus structure.

It can be seen that having three internal busses only modestly increases the design
complexity of the CPU.?This is considered a good trade杘ff.


Immediate Implications of the Three朆us Design

The design of the CPU calls for it to have three internal busses.

These are called B1, B2, and B3.

B1 and B2 serve as input busses for the ALU.

B3 serves as an output bus for the ALU.

This design can be seen in another light.

B1 and B2 are the only busses to which any register can transfer data directly.

B3 is the only bus that can transfer data directly to any register.

The protocol for register杢o杛egister transfer becomes as follows:

1.牋牋 Transfer from the source register to either bus B1 or bus B2 (but not both).

2.牋牋 Signal the ALU to connect the appropriate input bus to bus B3.

3.牋牋 Transfer the contents of bus B3 to the destination register.

This implies two additional ALU control signals: tra1 and tra2

牋牋牋?tra1牋牋牋牋 transfer the contents of B1 to B3

牋牋牋?tra2牋牋牋牋 transfer the contents of B2 to B3


More Requirements of the Common Fetch Sequence

Let抯 repeat the common fetch sequence and examine it for more requirements.

Fetch, T0:牋牋牋 (PC) ?/span> B1, tra1, B3 ?/span> MAR, READ.

Fetch, T1:牋牋牋 (PC) ?/span> B1, 1 ?/span> B2, add, B3 ?/span> PC.

Fetch, T2:牋牋牋 (MBR) ?/span> B2, tra2, B3 ?/span> IR.

T0:?We have handled the requirements for bus transfer.?This demands the signal
牋牋牋?tra1 to the ALU.?The READ control signal goes to the memory interface.

T1:?We have handled these requirements completely.

T2:?Here we have two more registers to be assigned to input busses.
牋牋牋?My earlier designs required that the Memory Buffer Register and Instruction
牋牋牋?Register be assigned to different busses, so this design reflects that.

Connecting the IR to Bus B1

The structure of the IR (Instruction Register) calls for bits to be sent directly to the Control Unit and bits to be sent to the bus B1.

We focus on the twenty lower order bits of the IR: IR19 ?IR0.

In some instructions these bits IR19 ?IR0 form an address for accessing memory.

In some instructions these bits IR19 ?IR0 are interpreted as an immediate operand,
牋牋牋?either a 20朾it (five hexadecimal digit) bit mask,
牋牋牋?or a 20朾it two抯朿omplement signed integer.

In some instructions,牋牋?bits IR19 ?IR17 are part of the instruction and
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋?bits IR16 ?IR0 are not used.

In any case, provision is made to transfer only bits IR19 ?IR0 to bus B1.

This transfer is enabled by the signal IR ?/span> B1.

 


Sign Extension in Connecting the IR to Bus B1

Two of the immediate instructions, LDI and ADDI, require the contents of bits IR19 ?IR0 to be sign extended and treated as a 32朾it two抯朿omplement integer.

The other instructions that use bits IR19 ?IR0 treat them as an unsigned integer.

To handle this we have a control signal 揈xtend?/b>, which is emitted by the control unit.

Here is a representation of the transfer mechanism for the IR.


Labeling Control Signals

Control signals are Boolean signals with two values:

牋牋牋?Logic 1牋?Usually asserted as + 5 volts.

牋牋牋?Logic 0牋?Usually asserted as 0 volts.

Each control signal is labeled by the action that it enables.

牋牋牋?IR ?/span> B1牋牋牋牋 This signal enables the transfer of IR19 ?IR0 to bus B1.
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋?It might be called IR19?
?/span> B1

牋牋牋?Extend牋牋牋牋牋牋 When IR ?/span> B1 is asserted, this causes the transfer to
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋?be sign extended.

Control signals that enable data transfers to either bus B1 or bus B2 will take
effect by enabling a tri杝tate buffer.? The IR is one of many possible inputs to B1.

 

The Complete Connection Scheme for the Instruction Register

Here is a schematic that shows the basic processes associated with the transfer.

The Control Unit emits both signals (Extend and IR ?/span> B1).?Only the latter is shown explicitly, due to a desire to keep the figure uncluttered.

 


The General Purpose Registers

In this version of the design, the CPU has eight general杙urpose registers.

牋牋牋?R0牋牋牋牋牋 This register is read杘nly, holding the value 0.

牋牋牋?R1 ?R7These seven registers are read/write and can be used for any purpose.
牋牋牋牋牋牋牋牋牋牋牋?They are often used as index registers.

Each of these eight registers can output to either bus B1 or bus B2.

Bus B3 can place data into any of the seven registers R1 ?R7, but is not connected to R0.

 


The Complete Register Set

Here is the complete register set and bus structure for the CPU.?Note the two special purpose constant registers +1 and ?, used by the Control Unit.


Attaching the General Purpose Registers to the Bus Structure

There are only three control signals emitted by the Control Unit that enable these transfers.?These are:

牋牋牋?R ?/span> B1牋牋牋牋牋 The selected register is copied to bus B1.

牋牋牋?R ?/span> B2牋牋牋牋牋 The selected register is copied to bus B2.

牋牋牋?B3 ?/span> R牋牋牋牋牋 The contents of bus B3 are copied into the selected register.

We now ask how each of these registers is selected.

The Control Unit uses three selector registers, each based on bit fields in the IR.
The generation of these selector registers will be discussed later.

牋牋牋?B1S牋牋牋牋 This selects the register to be placed on B1 when R ?/span> B1 is asserted.

牋牋牋?B2S牋牋牋牋 This selects the register to be placed on B2 when R ?/span> B2 is asserted.

牋牋牋?B3D牋牋牋牋 This selects the register to copy the contents of B3
牋牋牋牋牋牋牋牋牋牋牋?when B3
?/span> R is asserted.? If B3D = 000, no transfer occurs.

Each of the signals B1S and B2S is the control input to an 8杢o? multiplexer that outputs to a bus through a tri杝tate buffer enabled by the appropriate control signal.

The signal B3D is the 3朾it input to an active杊igh 3杢o? decoder that is
enabled by the control signal B3
?/span> R.

Figure: Connecting a Single Bit to the Busses

Comments on the Connection

Transfer to a register.

When control signal B3 ?/span> R is asserted, the 3杢o? decoder is activated and asserts the clock input of all flip杅lops associated with the selected register.

Each flip杅lop associated with the selected register takes input from its bit line on B3.

Output 0 of the decoder is not connected to any register, so that asserting
B3
?/span> R when B3D = 000 has no effect.

If B3 ?/span> R is not asserted, all decoder outputs are 0 and nothing happens.

Transfer from a register.

Note that the selector registers B1S and B2S always have values, so that the output of the multiplexer associated with each bus always copies some general杙urpose register.

When control signal R ?/span> B1 is asserted the selected register is output to bus B1.
If it is not asserted, either B1 is not active or a special purpose register is feeding it.

When control signal R ?/span> B2 is asserted the selected register is output to bus B2.
If it is not asserted, either B2 is not active or a special purpose register is feeding it.

It is expected that the two signals R ?/span> B1 and R ?/span> B2 can be asserted simultaneously.

间隙是什么意思 功劳叶的别名叫什么 牛骨煲汤搭配什么最好 handmade是什么牌子 扌字旁的字和什么有关
黄精是什么 dc是什么 医学生规培是什么意思 磷是什么 登对是什么意思
creative是什么意思 11.11什么星座 克卜勒是什么意思 乳腺应该挂什么科 晚上吃什么不长胖
经常放屁吃什么药好 天蝎座属于什么象星座 evisu是什么牌子 二郎腿为什么叫二郎腿 孩子出汗多是什么原因
胶囊是什么原料做的hcv8jop0ns7r.cn 肠癌有什么症状hcv8jop4ns7r.cn 发髻是什么意思hcv8jop3ns0r.cn 指甲横纹是什么原因youbangsi.com 非萎缩性胃炎什么意思hcv9jop5ns4r.cn
十一月十五号是什么星座hcv9jop7ns4r.cn 摧残是什么意思hcv9jop6ns0r.cn 北京西单附近有什么好玩的jingluanji.com 肠胃紊乱什么症状hcv8jop0ns8r.cn 天庭饱满是什么意思hcv8jop9ns2r.cn
太白金星是什么神hcv8jop0ns7r.cn 立秋吃什么hcv8jop4ns8r.cn 嘴巴干是什么原因hcv8jop5ns4r.cn 嘴唇为什么会肿起来mmeoe.com spa什么意思hcv8jop6ns3r.cn
抗酸杆菌是什么hcv9jop1ns4r.cn 男人吃女人有什么好处huizhijixie.com 月经一直不停有什么办法止血hcv9jop8ns1r.cn 男人结扎有什么危害hcv8jop6ns6r.cn 女人喝什么调节内分泌hcv9jop3ns4r.cn
百度