青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

posts - 71,  comments - 41,  trackbacks - 0
? 2003 by Charles C. Lin. All rights reserved.

Register File, Part 1

Consider a typical R-type instruction.
   add $r10, $r3, $r4   # R[10] = R[3] + R[4]
The first step to executing this instruction is fetching the operands. In this case, we need to get the values of $r3 and $r4.

Recall that the CPU processes a 32-bit machine code instruction that's translated from the assembly code above, and encoded in that instruction are the 3 registers. In particular, each of the register is encoded using 5 bit UB.

For example, register 3 is encoded as 00011 and register 4 is encoded as 00100.

We're going to create a circuit called a register file. This circuit contains all 32 user-visible integer registers. We could create one for floating point, but that's not absolutely necessary. You'll still understand how a CPU works if we leave out floating point registers (they work pretty much like the integer registers).

We want the ability to access both registers (in this case, $r3 and $r4) at the same time. That way, we can save time. If we have to access one register at a time, it would slow down the execution of the instruction.

So, we have two sets of inputs to our register file, which specify which two registers we want. They can even be the same register.

Here's how our initial register file looks:

We've labelled the inputs as SRC 1 Index and SRC 2 Index, which are 5 bits each. We can think of registers 3 and 4 and source registers, and their result is stored in the destination register (in our example, it's $r10).

Register File, Part 2

However, we need the register file to have outputs. These outputs are going to be 32 bits each since each register in MIPS32 has 32 bits. The outputs are the contents of the registers specified by SRC 1 Index and SRC 2 Index. Thus SRC 1 Data is the contents of the register specified by SRC 1 Index, and SRC 2 Data is the contents of the register specified by SRC 2 Index.

Register File, Part 3

At this point, the two 32-bit outputs are sent to the ALU (we'll discuss the ALU in more detail soon). The ALU does computations on these and produces a 32-bit result. This result is saved back into the destination register. The register file needs 32-bit data as input as a 5-bit index. We'll call these DST Index and DST Data for short.

The DST Index comes from the instruction itself, just as SRC 1 Index and SRC 2 Index did. In our example, that's the encoding of $r10 (which is 01010).

It turns out we need one more input, in addition to DST Index and DST Data. Even though this particular instruction updates a destination register, not every instruction does so. We want to control when a register value is updated in the register file.

This control signal is called RegWrite and it's only 1 bit. If RegWrite = 1, then a write is performed on the register specified by DST Index, using the 32-bit data given by DST Data. If RegWrite = 0, then no write is performed. Both DST Index and DST Data are ignored.

Which reminds me, we have to talk about a clock. The register file also has a clock. The diagram below is now complete.

Why no RegRead?

You may wonder why there's no RegRead to control when the register file outputs SRC 1 Data and SRC 2 Data.

The reason is simple. SRC 1 Data and SRC 2 Data are sent to the outside world (i.e., to other parts of the CPU). Those parts can simply choose to ignore the data, if they don't need it.

However, when you are performing a write on a register using DST Index and DST Data, you are updating the register file. The register file can't very well ignore that. To give it the option to ignore it, we must include RegWrite.

Clocks

The register file should be thought of as partly using the clock and partly not.

SRC 1 Data and SRC 2 Data are output with a small delay given a change in SRC 1 Index and SRC 2 Index. If you're curious about the implementation (or, more precisely, if you're curious about an implementation), look at the MAR from the previous set of notes.

You can see that it's hooked up to tri-state buffers. Once the tri-state buffers are enabled (which doesn't require a clock), the output is sent to the address bus.

Similarly, SRC 1 Index and SRC 2 Index enable two 32-bit tri-state buffers. In particular, they enable the tri-state buffers to the registers specified by SRC 1 Index and SRC 2 Index.

Again, this part does not need a clock. If SRC 1 Index and SRC 2 Index both change, then the tri-state buffers associated with the new registers are enabled (while the previous ones are disabled), and they are output after a small delay.

Writing Requires a Clock

However, when you want to write to a register, you are performing a parallel load on that register. This operation relies on a clock. We're going to assume that the register file, like MAR and MDR, is loaded on negative edges. This allows computations to be performed by the rest of the CPU before registers are loaded.

Summary

A register file is a black box that contains 32 32-bit registers. At any one time, you can specify up to two registers to "read" and one register to write, with the option to decide whether you want to write or not.

Reading a value from the register file does not require a clock. Once you specify the registers you want to read (i.e., SRC 1 Index and SRC 2 Index), then there's only a small delay before the data comes out of the register file via SRC 1 Data and SRC 2 Data.

Writing a value to the register file does require a clock. You can specify which register you want to write to (using DST Index), the data you want to write (using DST Data) and whether you really want to write to the register file or not (using RegWrite). This action takes place on the negative edge of the clocks. (Positive edges are used to transition in the finite state machine and set up control signals for ALU, MUX, tri-state buffers, etc).

posted on 2007-01-24 09:25 Charles 閱讀(892) 評論(0)  編輯 收藏 引用 所屬分類: 拿來主義
<2008年8月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

決定開始寫工作日記,記錄一下自己的軌跡...

常用鏈接

留言簿(4)

隨筆分類(70)

隨筆檔案(71)

charles推薦訪問

搜索

  •  

積分與排名

  • 積分 - 51563
  • 排名 - 449

最新評論

閱讀排行榜

評論排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美激情精品久久久久久蜜臀 | 亚洲私人黄色宅男| 狠狠色丁香婷婷综合影院| 欧美二区在线观看| 亚洲国内精品| 亚洲一区二区三区国产| 欧美激情一区三区| 99日韩精品| 久久亚洲精品一区二区| 国产精品99久久久久久人| 亚洲一区图片| 国内精品久久久久久 | 久久综合色天天久久综合图片| 欧美日本韩国一区| 午夜精品福利视频| 一本色道久久综合亚洲精品按摩| 老司机久久99久久精品播放免费 | 欧美凹凸一区二区三区视频| 亚洲午夜久久久久久久久电影网| 欧美国产日韩一区二区三区| 日韩视频在线免费| 国产一二三精品| 欧美一级理论片| 免费人成精品欧美精品| 国产日韩欧美综合在线| 欧美国产精品久久| 欧美在线观看视频在线| 亚洲主播在线观看| 巨胸喷奶水www久久久免费动漫| 亚洲欧美日韩成人| 亚洲性图久久| 久久免费偷拍视频| **网站欧美大片在线观看| 久久精品噜噜噜成人av农村| 国产亚洲综合在线| 欧美大色视频| 久久躁日日躁aaaaxxxx| 欧美一区1区三区3区公司| 亚洲美女黄色| 亚洲精品国产欧美| 欧美暴力喷水在线| 免费试看一区| 欧美国产一区二区在线观看| 免费观看成人| 国一区二区在线观看| 精品盗摄一区二区三区| 国内一区二区三区| 久久这里只有精品视频首页| 西瓜成人精品人成网站| 亚洲一区高清| 亚洲国产成人tv| 亚洲伊人久久综合| 久久激情久久| 国产精品蜜臀在线观看| 国产精品视频精品视频| 亚洲自拍偷拍视频| 亚洲在线网站| 欧美交受高潮1| 亚洲精品国产精品乱码不99| 久久爱www| 久久婷婷色综合| 亚洲精品美女在线观看播放| 欧美福利电影网| 国产日韩欧美在线视频观看| 最新日韩精品| 亚洲精品在线视频| 欧美亚洲在线观看| 国产欧美日韩麻豆91| 久久婷婷av| 久久精品国产在热久久| 亚洲国产乱码最新视频| 亚洲黄色高清| 国产精品va在线| 在线观看欧美| 久久尤物视频| 欧美一级免费视频| 国产在线拍偷自揄拍精品| 久久免费偷拍视频| 欧美自拍偷拍| 亚洲高清不卡在线| 亚洲东热激情| 欧美日韩国产91| 亚洲制服av| 久久国产精品久久w女人spa| 在线成人欧美| 亚洲国产mv| 欧美老女人xx| 午夜亚洲福利| 欧美一区二区久久久| 亚洲国产精品传媒在线观看| 亚洲精品视频在线观看免费| 国产精品视频1区| 狼人天天伊人久久| 欧美精品999| 久久国产高清| 欧美激情视频免费观看| 亚洲欧美日韩国产综合精品二区| 亚洲欧美在线高清| 最近中文字幕mv在线一区二区三区四区| 亚洲日本电影在线| 国产日韩一区二区| 亚洲精品九九| 国产一区欧美| 亚洲午夜精品国产| 日韩亚洲一区二区| 午夜精品一区二区在线观看 | 在线播放一区| 一本色道久久综合亚洲91| 国产一区二区三区在线观看网站| 亚洲激情午夜| 国产一区二区中文| 亚洲一区二区免费看| 亚洲国产专区校园欧美| 亚洲视频在线一区| 日韩一区二区久久| 久久先锋资源| 久久久精品五月天| 欧美日韩国产精品专区| 欧美国产91| 国内精品久久久久国产盗摄免费观看完整版 | 欧美性色aⅴ视频一区日韩精品| 久久久久久久久蜜桃| 美玉足脚交一区二区三区图片| 国产精品成人一区二区网站软件 | 欧美精品日本| 狂野欧美一区| 国产一区二区视频在线观看| 欧美freesex交免费视频| 国产一区视频网站| 午夜亚洲伦理| 亚洲综合日韩中文字幕v在线| 欧美激情亚洲自拍| 亚洲黄一区二区| 亚洲精品男同| 久久亚洲精品一区二区| 猛男gaygay欧美视频| 在线成人激情视频| 久久网站热最新地址| 久久一区二区三区国产精品| 国产精品免费看片| 午夜一区二区三视频在线观看 | 激情婷婷亚洲| 久久久久久久综合狠狠综合| 久久久久高清| **性色生活片久久毛片| 久久久www成人免费无遮挡大片| 久久久久久有精品国产| 国产精品高潮呻吟久久av无限| 夜夜精品视频| 欧美亚洲在线观看| 国产精品入口麻豆原神| 午夜一级在线看亚洲| 嫩草影视亚洲| 亚洲精品影视在线观看| 欧美18av| 日韩一级网站| 欧美一区=区| 伊人成人在线视频| 男男成人高潮片免费网站| 亚洲精品在线观看免费| 中文在线资源观看网站视频免费不卡| 欧美国产日韩一区二区在线观看 | 牛人盗摄一区二区三区视频| 1000精品久久久久久久久 | 亚洲高清视频中文字幕| 欧美精品一区二区三区久久久竹菊 | 欲香欲色天天天综合和网| 欧美成人蜜桃| 亚洲自拍偷拍网址| 老司机精品导航| 夜夜嗨av一区二区三区中文字幕| 国产精品国产三级国产专播精品人| 亚洲欧美在线看| 亚洲精品三级| 久久久水蜜桃av免费网站| 日韩视频第一页| 亚洲欧美视频| 亚洲大片在线| 亚洲一区二区三区四区中文| 国产精品毛片大码女人| 麻豆精品91| 午夜精品福利在线| 亚洲电影免费在线| 午夜精品国产精品大乳美女| 尤物在线精品| 国产欧美一区二区三区在线看蜜臀 | 久久久精彩视频| 国产精品99久久久久久白浆小说| 老鸭窝亚洲一区二区三区| 亚洲一区二区三区免费视频| 亚洲国产人成综合网站| 国产一区二区福利| 国产精品美女一区二区| 欧美精品成人一区二区在线观看| 久久激情五月婷婷| 亚洲欧美日韩精品综合在线观看| 亚洲每日更新| 欧美国产综合视频| 免费观看国产成人| 久久青青草综合|