processors in a nutshell

Download Processors in a nutshell

If you can't read please download the document

Upload: ikuru-kanuma

Post on 15-Aug-2015

30 views

Category:

Technology


0 download

TRANSCRIPT

  1. 1. Processors Ikuru K
  2. 2. Agenda Overview Hands On
  3. 3. Note The details are dramatically different from processor to processor. Try to capture what the essence.
  4. 4. Physical Look
  5. 5. Manufacturing Process
  6. 6. Working Directly with Processors
  7. 7. Finite State Machine in a Nutshell Next state is a func tion of current stat e and input, mapp ed by state transfe r function. Processor is a finit e state machine.
  8. 8. Processor Implementation
  9. 9. Main Components RAM Holds instructions and longer term data Register Storage to do arithmetic/ store pointers ALU circuit that carries out all arithmetic operations PC program counter that points to instruction to be d one. BUS Communication between components (terminal etc)
  10. 10. Basic Processor Instructions Load to register Write to address Arithmetic Compare->was result of arithmetic 0? gt 0 ? lt 0? Jump Modify PC value -> functions are acco mplished using this.
  11. 11. Hands-on http://schweigi.github.io/assembler-simulator /
  12. 12. Plain Text ; Ikuru K ; Simple iteration example ; Writes the character to the terminal stored in register A ; (Number in register C) times. ;intended for use on http://schweigi.github.io/assembler-simulator/ JMP start start: MOV A, 100; write ascii value of character to be printed here MOV C, 11 ; write x here MOV D, 232 ; Point to output CALL print_x_times HLT ; Stop execution print_x_times: INC C;offsetting. .print_loop: MOV [D], A ;Print character to be written DEC C;Updating the counter INC D;Each charactor slot is mapped to a different location CMP C,0;Done? JNZ .print_loop;Continue if not done RET;