1 / 5

Microcoded Implementation of a CPU Archtecture

Microcoded Implementation of a CPU Archtecture. Summary from Matlo Handout. What Identifies CPU Architecture. Instruction set Addressing mode Direct e.g. ac := ac + m[x] Indirect e.g. m[ac] := m[sp]; sp:=sp+1 local e.g. ac := ac + m[sp+x] Register sets 16 registers, 16-bit wide.

creola
Download Presentation

Microcoded Implementation of a CPU Archtecture

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Microcoded Implementation of a CPU Archtecture Summary from Matlo Handout

  2. What Identifies CPU Architecture • Instruction set • Addressing mode • Direct e.g. ac := ac + m[x] • Indirect e.g. m[ac] := m[sp]; sp:=sp+1 • local e.g. ac := ac + m[sp+x] • Register sets • 16 registers, 16-bit wide

  3. Microcoded Approach • Control store simulates architecture • Microinstructions and instructions share the resources • .def: Machine definition • .mal: Microprogram • .asm: Test program

  4. c dcd Register File b dcd a dcd b a c 4 3 2 1 latch latch mar mmux mpc increment mbr amux Control Store ALU amux cond alu mar b a addr sh mbr rd enc wr c n,z shifter

  5. Assignment 1 • Modify such that • It does not use a shifter. • It implements the new instruction: multiply from memory MULD (ac := ac * m[x]) Rewrite the code for the MAC-1 program fact.asm (contained in the micmac distribution) so that it uses MULD. • Then modify one.mal so that it only contains instructions necessary to run fact.asm.

More Related