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

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

Microsoft PowerPoint - NxLec ppt

Microsoft PowerPoint - Lec pptx

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

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

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


main.dvi

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

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

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

VGA Output FPGA 7-Segment LED Module MieruPC Fig. 1 The image of MieruPC drawn in April, FPGA Fig. 2 Sample hardware with FPGA used i

Microsoft PowerPoint - ProcML-12-3.ppt

卒論発表

PowerPoint プレゼンテーション

コンピュータ工学Ⅰ

Verilog HDL による回路設計記述

スライド 1

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

Microsoft PowerPoint - CompArch_Exercise3.pptx

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

M SRAM 1 25 ns ,000 DRAM ns ms 5,000,

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

Microsoft PowerPoint - 7.Arithmetic.ppt

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

FabHetero FabHetero FabHetero FabCache FabCache SPEC2000INT IPC FabCache 0.076%

プログラミング実習I

Microsoft PowerPoint - Chap4 [Compatibility Mode]


2016 3

23 Fig. 2: hwmodulev2 3. Reconfigurable HPC 3.1 hw/sw hw/sw hw/sw FPGA PC FPGA PC FPGA HPC FPGA FPGA hw/sw hw/sw hw- Module FPGA hwmodule hw/sw FPGA h

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

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

計算機アーキテクチャ

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

デザインパフォーマンス向上のためのHDLコーディング法

Nios II カスタム・インストラクションによるキャスト(型変換)の高速化

PLDとFPGA

IA-32 インテル® アーキテクチャ・ソフトウェア・デベロッパーズ・マニュアル

Microsoft PowerPoint mm2

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)

1: ITT-2 DDR2 1.8V,.V(F) Config. Mem. JTAG XCFPV048 LEDs SWs Clock (VariClock) DDR2 DDR2 DDR2 FPGA XC5VFX0T General-Purpose LEDs SWs XTAL (2.68kHz) MC

Microsoft PowerPoint - iaca.ppt

char int float double の変数型はそれぞれ 文字あるいは小さな整数 整数 実数 より精度の高い ( 数値のより大きい より小さい ) 実数 を扱う時に用いる 備考 : 基本型の説明に示した 浮動小数点 とは数値を指数表現で表す方法である 例えば は指数表現で 3 書く


PowerPoint プレゼンテーション

Microsoft PowerPoint コンピュータ物理2_第2回.pptx

Microsoft PowerPoint - Lec pptx

DELPHINUS EQUULEUS 2019 NASA SLS FPGA ( ) DELPHINUS 2

Design at a higher level

Microsoft Word - レポート回答集.docx

PowerPoint プレゼンテーション

電卓の設計 1

遅延デジタルフィルタの分散型積和演算回路を用いたFPGA実装の検討

Transcription:

2012-05-31 2011 年前学期 TOKYO TECH 固定小数点表現 計算機アーキテクチャ第一 (E) あまり利用されない 小数点の位置を固定する データ形式 (2) 吉瀬謙二計算工学専攻 kise_at_cs.titech.ac.jp W641 講義室木曜日 13:20-14:50-2.625 符号ビット 小数点 1 0 1 0 1 0 1 0 4 2 1 0.5 0.25 0.125 0.0625 4 整数の表現のまとめ 符号なし表現 符号つき絶対値表現 1 の補数表現 2 の補数表現 最上位ビットのみで正負判定が可能. 正負の反転が容易. ビット幅の異なるデータへの変換が容易. 符号なし整数と同じハードウェアで符号付き加算を実装 浮動小数点表現 (1) 小数点位置が変動 科学記数法で数値で先頭に0がこない正規化数を利用. 指数部 1.xxxxxxxxx 2 yyyy 仮数部符号指数部仮数部 2 5 実数 少数を含む数値 実数の例 3.1415926 (π) 0.000000001, 1.0 x 10-9 3,155,760,000, 3.1556 x 10 9 単精度 (32 ビット ) 浮動小数点表現 (2) IEEE754 1 ビット 8 ビット 23 ビット 符号指数部仮数部 科学記数法 : 小数点の左側には数字を一つしか書かない. 科学記数法で書いた数値で先頭に 0 がこないものを正規化数と呼ぶ. 倍精度 (64 ビット ) 1 ビット 11 ビット 52 ビット 符号指数部仮数部 3 6 1

浮動小数点表現 (3) 誤差 実数は不可算無限 決められたビットで表現できる数は有限 丸め誤差が発生 表現できないほど大きな数 表現できないほど小さな数 非常に大きな数と, 非常に小さな数の間の演算 10 進数で 0.10 は, 2 進数で 0.0001100110011 どうすれば良いか? Packed decimal Video 7 10 プロセッサのデータパス ( シングル サイクル ) MIPSCORE & I-Cache & Data Cache 8 11 プロセッサのデータパス ( シングル サイクル ) 32bit RISC Processor No hardware divider software emulation No floating-point unit 9 12 2

load word 0 90 180 270 D_IN ExA/ExWE ExA DCACHE ExRSLT DCACHE I_IN rrs ExRSLT MaLDD ICACHE rrt decode ExTPC n posedge posedge negedge negedge 90 90 90, 90 positive edge, negative edge 13 16 シングルサイクル版プロセッサの実装 Target hardware : MieruPC-2010 XILINX Spartan-3E XC3S250E (25 万ゲート相当 FPGA) 512KB SRAM load word 0 90 180 270 D_IN ExA/ExWE ExA DCACHE ExRSLT DCACHE I_IN rrs ExRSLT MaLDD ICACHE rrt decode ExTPC n posedge posedge negedge negedge 90 90 18MHz, 55.5 ns 1/4 = 13.889 ns FPGA Card RC2 ( ただし,50 万ゲートの FPGA に変更 ) 14 17 XILINX Spartan-3E FPGA load word 0 90 180 270 D_IN ExA/ExWE ExA DCACHE ExRSLT DCACHE I_IN rrs ExRSLT MaLDD ICACHE rrt decode ExTPC n posedge posedge negedge negedge 90 90 90, 90 positive edge, negative edge 18MHz, 13.3 VAX MIPS Spartan-3E FPGA ファミリ : データシートより 15 18 3

エッジトリガ方式による設計 パイプライン処理 (pipelining) State Element 1 Combinational logic State Element 2 Clock cycle 19 22 プロセッサのデータパス ( マルチ サイクル ) パイプライン処理 (pipelining) IF ID EX MEM WB 20 23 プロセッサのデータパス ( マルチ サイクル ) パイプライン処理 (pipelining) IF ID EX MEM WB 21 24 4

プロセッサの3つの実現方式 シングル サイクル マルチ サイクル パイプライン処理 Discussion RISC (Reduced Instruction Set Computer) MIPS, SPARC CISC (Complex Instruction Set Computer) IA(Intel Architecture)-32 or x8086, 25 28 オペランド数 IA-32 Registers and Data Addressing 3オペランド MIPS, 2オペランド SuperH ADD Rm, Rn : Rn <- Rn + Rm Registers in the 32-bit subset that originated with 80386 Name Use 31 0 EAX GPR 0 ECX GPR 1 EDX GPR 2 EBX GPR 3 ESP GPR 4 EBP GPR 5 MIPS Arithmetic Instruction Format (R format): add $t0, $s1, $s2 ESI EDI CS GPR 6 GPR 7 Code segment pointer SS Stack segment pointer (top of stack) DS Data segment pointer 0 op rs rt rd shamt funct ES FS Data segment pointer 1 Data segment pointer 2 GS Data segment pointer 3 EIP Instruction pointer (PC) 26 EFLAGS Condition codes 29 基本記憶方式 general-purpose register architecture stack architecture queue architecture accumulator architecture IA-32 Typical Instructions Four major types of integer instructions: Data movement including move, push, pop Arithmetic and logical (destination register or memory) Control flow (use of condition codes / flags ) String instructions, including string move and string compare stack queue accumulator push pop enqueue dequeue 27 30 5

IA-32 instruction Formats Typical formats: (notice the different lengths) a. JE EIP + displacement 4 4 8 Condition JE Displacement b. CALL 8 32 CALL Offset c. MOV EBX, [EDI + 45] 6 1 1 8 8 MOV d w r/m Postbyte Displacement d. PUSH ESI 5 3 PUSH Reg e. ADD EAX, #6765 4 3 1 32 ADD Reg w Immediate f. TEST EDX, #42 7 1 8 32 TEST w Postbyte Immediate 31 アナウンス 講義スライドおよびスケジュール www.arch.cs.titech.ac.jp 講義日程が変更になることがあるので頻繁に確認すること. 32 6