Microsoft PowerPoint - NxLecture ppt [互換モード]

Similar documents
Microsoft PowerPoint - Lecture ppt [互換モード]

Microsoft PowerPoint - Lec pptx

Microsoft PowerPoint - NxLec ppt

main.dvi

3 SIMPLE ver 3.2: SIMPLE (SIxteen-bit MicroProcessor for Laboratory Experiment) 1 16 SIMPLE SIMPLE 2 SIMPLE 2.1 SIMPLE (main memo

Microsoft PowerPoint - ProcML-12-3.ppt

Microsoft PowerPoint - Chap4 [Compatibility Mode]

.,. 0. (MSB). =2, =1/2.,. MSB LSB, LSB MSB. MSB 0 LSB 0 0 P

コンピュータ工学Ⅰ

計算機アーキテクチャ特論 後半第2回 アウトオブオーダー実行 Out-of-Order Execution

Microsoft PowerPoint - Sol7 [Compatibility Mode]

PowerPoint プレゼンテーション

ソフトウェア基礎技術研修

Microsoft PowerPoint - CompArch_Exercise3.pptx


PowerPoint プレゼンテーション

命令セットの構成例 a) 算術 演算命令 例 )ADD dest, source : dest dest + source SUB dest, source : dest dest - source AND dest, source : dest dest AND source SHR reg, c

コンピュータの仕組み(1)ハードウェア

2ALU 以下はデータ幅 4ビットの ALU の例 加算, 減算,AND,OR の4つの演算を実行する 実際のプロセッサの ALU は, もっと多種類の演算が可能 リスト 7-2 ALU の VHDL 記述 M use IEEE.STD_LOGIC_1164.ALL; 00 : 加算 use IEE

Microsoft PowerPoint - Chap3 [Compatibility Mode]

ソフトウェア基礎技術研修

ディジタル回路 第1回 ガイダンス、CMOSの基本回路

2016 3

スライド 1

目次 1. はじめに 1 2. マルチALUプロセッサ MAP MAP の構成 MAP 命令セットアーキテクチャ 並列 連鎖判定のアルゴリズムについて 5 3. Booth 乗算のアルゴリズム 次 Booth アルゴリズム 次 Bo

「FPGAを用いたプロセッサ検証システムの製作」

1 Code Generation Part I Chapter 8 (1 st ed. Ch.9) COP5621 Compiler Construction Copyright Robert van Engelen, Florida State University,

計算機アーキテクチャ

DRAM SRAM SDRAM (Synchronous DRAM) DDR SDRAM (Double Data Rate SDRAM) DRAM 4 C Wikipedia 1.8 SRAM DRAM DRAM SRAM DRAM SRAM (256M 1G bit) (32 64M bit)

Microsoft PowerPoint mm2

/ FPGA LSI [1] CDP DDP 2 LSI FPGA PicoProcessor(pP)[2] (STP)[1] DDP 1.27 i

卒論発表

計算機アーキテクチャ

プロセッサ・アーキテクチャ

ソフトウェア基礎技術研修

Microsoft PowerPoint - vlsi4.ppt [互換モード]

ex05_2012.pptx

Microsoft PowerPoint - NxLecture ppt

MIPSのマルチサイクル マイクロアーキテクチャ

MIPSのマイクロアーキテクチャ

Microsoft PowerPoint - iaca.ppt

情報科学概論

ディジタル回路 第1回 ガイダンス、CMOSの基本回路

<リスト1> AD コンバータへのデータの出力例 NEC PC98 用 mov al,22h // CLK -> 1, CS -> 0, DI -> 0 out 32h,al // シリアル ポートにデータ出力 PC/AT 互換機用 mov al,00h // CLK -> 1 mov dx,3fb

Microsoft PowerPoint - 3.3タイミング制御.pptx

Microsoft PowerPoint - NxLecture ppt

ストリーミング SIMD 拡張命令2 (SSE2) を使用した、倍精度浮動小数点ベクトルの最大/最小要素とそのインデックスの検出

by CASIO W61CA For Those Requiring an English/Chinese Instruction

PowerPoint プレゼンテーション

Transcription:

011-05-19 011 年前学期 TOKYO TECH 命令処理のための基本的な 5 つのステップ 計算機アーキテクチャ第一 (E) 5. プロセッサの動作原理と議論 吉瀬謙二計算工学専攻 kise_at_cs.titech.ac.jp W61 講義室木曜日 13:0-1:50 IF(Instruction Fetch) メモリから命令をフェッチする. ID(Instruction Decode) 命令をデコード ( 解読 ) しながら, レジスタの値を読み出す. EX(Execution) 命令操作の実行またはアドレスの生成を行う. MEM(Memory Access) 必要であれば, データ メモリ中のオペランドにアクセスする. WB(Write Back) 必要であれば, 結果をレジスタに書き込む. 主な構成要素 (1) レジスタ マルチプレクサ ALU (Arithmetic Logic Unit) レジスタファイル読み出しポート, 書き込みポート 1 命令メモリ データメモリ 加算器 3 Machine Language - Add Instruction 0x800 add $t0, $s1, $s [ add $8, $17, $18 ] Instructions, like registers and ords of data, are bits long Arithmetic Instruction Format (R format): add $t0, $s1, $s 5 op 6-bits opcode that specifies the operation rs 5-bits register file address of the first source operand rt 5-bits register file address of the second source operand rd 5-bits register file address of the result s destination shamt 5-bits shift amount (for shift instructions) funct 6-bits function code augmenting the opcode Adapted from Computer Organization and Design, Patterson & Hennessy, 005 6 1

主な構成要素 () IR[5:1] IR[0:16] IR[15:11] 0x800 add $t0, $s1, $s [ add $8, $17, $18 ] 符号拡張 ビット左にシフト Instruction Decode & register file access Instruction Fetch Execution Write Back 7 8 0x80 addi $t0, $t1, -1 [ addi $8, $9, -1 ] 0x808 l $t0, ($s) [ l $8, ($18) ] 9 10 0x80C s $t0, ($s) [ s $8, ($18) ] 0x810 beq $s0, $s1, Label [beq $16, $17, Label ] Label: 0x830 11 1

Exercise op rs rt 16 bit immediate 氏名, 学籍番号, 学籍番号マーク欄 ( 右詰で ) I format 0x810 beq $s0, $s1, Label [beq $16, $17, Label ] Label: 0x830 $s0 =5, $s1 = 5 今日の日付, 科目名 : Arch I Other Control Flo Instructions MIPS also has an unconditional branch instruction or jump instruction: j label #go to label Instruction Format (J Format): op 6-bit address from the lo order 6 bits of the jump instruction 6 ビットの命令列を 進数で示せ. この命令を実行する際, 確定するデータパスに値を示せ. 00 PC 13 1 非同期式メモリ 非同期式メモリ 15 Adapted from Computer Organization and Design, Patterson & Hennessy, 005 エッジトリガ方式による設計 プロセッサのデータパス ( マルチ サイクル ) State Element 1 Combinational logic State Element IF ID EX MEM WB Clock cycle 17 18 3

プロセッサのデータパス ( マルチ サイクル ) IF ID EX MEM WB 19 0 1 プロセッサの3つの実現方式 シングル サイクル マルチ サイクル パイプライン処理 オペランド数 3オペランド MIPS, オペランド SuperH ADD Rm, Rn : Rn <- Rn + Rm MIPS Arithmetic Instruction Format (R format): add $t0, $s1, $s 3

基本記憶方式 general-purpose register architecture stack architecture queue architecture accumulator architecture Discussion RISC (Reduced Instruction Set Computer) MIPS, SPARC CISC (Complex Instruction Set Computer) IA(Intel Architecture)- or x8086, stack queue accumulator push pop enqueue dequeue 5 6 IA- Registers and Data Addressing Registers in the -bit subset that originated ith 80386 Name Use 31 0 EAX GPR 0 ECX GPR 1 IA- Typical Instructions Four major types of integer instructions: Data movement including move, push, pop Arithmetic and logical (destination register or memory) Control flo (use of condition codes / flags ) String instructions, including string move and string compare EDX EBX ESP EBP ESI EDI GPR GPR 3 GPR GPR 5 GPR 6 GPR 7 CS SS DS ES FS GS Code segment pointer Stack segment pointer (top of stack) Data segment pointer 0 Data segment pointer 1 Data segment pointer Data segment pointer 3 EIP Instruction pointer (PC) EFLAGS Condition codes 7 8 IA- instruction Formats Typical formats: (notice the different lengths) a. JE EIP + displacement 8 JE b. CALL c. MOV EBX, [EDI + 5] MOV CALL Condition d d. PUSH ESI Displacement 8 6 1 1 8 8 5 3 r/m Postbyte Displacement Offset アナウンス 講義スライドおよびスケジュール.arch.cs.titech.ac.jp 講義日程が変更になることがあるので頻繁に確認すること. PUSH Reg e. ADD EAX, #6765 3 1 ADD Reg Immediate f. TEST EDX, # 7 1 8 TEST Postbyte Immediate 9 30 5