8 bit risc processor presentation

36
WELCOME AND GREETING TO ALL RESPECTED FACULTY JAGANNATH UNIVERSITY

Upload: santanu-kumar

Post on 25-Oct-2014

189 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: 8 Bit Risc Processor Presentation

WELCOME AND GREETING TO ALLRESPECTED FACULTY

JAGANNATH UNIVERSITY

Page 2: 8 Bit Risc Processor Presentation

SIX MONTH INDUSTRIAL TRAINING

IN

Page 3: 8 Bit Risc Processor Presentation

ABOUT

Saffron-e-services helps its Global 2000 customers remain at the forefront of their industrieswith innovative uses of technology to operate their businesses more efficiently. We deliverflexible, custom Information Technology solutions that improve quality and reduce costs.More than any other company, we explore, develop and adapt new, better ways to do this.

Page 4: 8 Bit Risc Processor Presentation

1. BPO Services2. Technical Services Operation3. E-Business Application Development4. Enterprise Application Development5. Database/Open-Source Linux Consulting6. Software Products Development and Support

CORE FOCUS AREAS OF SOLUTION AND SERVICES

Page 5: 8 Bit Risc Processor Presentation

WITH

INDUSTRIAL PROJECT

LINUX

ARM7-TDMI BASIC

PIC MICROCONTROLL

ER

8051 FAMILY

DATA STRUCT

UREC

LANDUAGE

Page 6: 8 Bit Risc Processor Presentation

NOW, WE WILL CONTINUE TO MAJOR PROJECT

Page 7: 8 Bit Risc Processor Presentation

MAJOR PROJECT

8-BIT RISC MICROPROCESSOR USING VERILOG

BYASHISH TOMAR

UNDER SUPERVSIONARPAN SHAH

JAGANNATH UNIVERSITY

Page 8: 8 Bit Risc Processor Presentation

RISC ARCHITECTURE

Page 9: 8 Bit Risc Processor Presentation

What is RISC ?

RISC = Ridiculously Simple Computer

Or

RISC = Reduced Instruction Set Computers

Page 10: 8 Bit Risc Processor Presentation

RISC design philosophy

RISC is a design Philosophy where you reduce the COMPLEXITY of the instruction set, which will reduce the amount of space, time, cost, power, heat and other things it takes to implement the instruction set part of a processor.

Page 11: 8 Bit Risc Processor Presentation

Features of RISC1) Small Instruction Set

2) Load/Store Architecture

3) Fixed Length Coding And Hardware Decoding

4) Large Register Set 5) delayed branching

6) processor throughput of one instruction per cycle in average

Page 12: 8 Bit Risc Processor Presentation

Benefits of RISC RISC processor will cost less to design -- since a significant cost of the chip can be the actual R&D costs to create it, this can be substantial on its own easier to design (and fewer bugs) means that the processor will have a faster time to market

faster time to market means the processor can use newer processes

simpler to design means that they have more time for adding other things (things that can make the processor do more in each cycle)

more design time also means that you can tune the processor more to get more MHz (more cycles) and many other effects

Page 13: 8 Bit Risc Processor Presentation

What’s an FPGA?

FPGA – FIELD PROGRAMMABLE GATE ARRAY

Page 14: 8 Bit Risc Processor Presentation

Field Programmable Gate Arrays FPGA

Field Programmable Gate ArrayNew Architecture ‘Simple’ Programmable Logic BlocksMassive Fabric Of Programmable Interconnects

Large Number Of Logic Block ‘Islands’1,000 … 100,000+In A ‘Sea’ Of Interconnects

Page 15: 8 Bit Risc Processor Presentation

Standard

Logic

Logic

ASIC

Full custom

ICs

Cell-Based

ICs

Gate

ArraysProgrammable

Logic Devices

FPGAsCPLDsSPLDs FPICs

Page 16: 8 Bit Risc Processor Presentation

How Do You Program An FPGA?

1.Create a circuit design 1.1-Graphic circuit tool1.2-Verilog1.3-VHDL1.4-AHDL

2.Compile the design for the selected device3.Download the compiled configuration

Page 17: 8 Bit Risc Processor Presentation

Hardware Description Languages(HDL)

1.Basic idea is a programming language to describe hardware2.Initial purpose was to allow abstract design and simulation3.Design could be verified then implemented in hardware4.Now Synthesis tools allow direct implementation from HDL code.

4.1.Large improvement in designer productivity

Page 18: 8 Bit Risc Processor Presentation

HDL1.Combined with modern Field Programmable Gate Array chips large complex circuits (100000s of gates) can be implemented.2.There are many different HDLs

2.1-Verilog HDL2.2-ABEL2.3-VHDL

3.VHDL is the most common3.1-Large standard developed by US DoD3.2-VHDL = VHSIC HDL3.3-VHSIC = Very High Speed Integrated Circuit

Page 19: 8 Bit Risc Processor Presentation

Verilog HDLVerilog HDL is second most common

Easier to use in many ways = better for teaching

C - like syntaxHistory

Developed as proprietry language in 1985Opened as public domain spec in 1990

Due to losing market share to VHDLBecame IEEE standard in 1995

Page 20: 8 Bit Risc Processor Presentation

Verilog HDLVerilog constructs are use defined keywords

Examples: and, or, wire, input outputOne important construct is the module

Modules have inputs and outputs Modules can be built up of Verilog primatives

or of user defined submodules.

Page 21: 8 Bit Risc Processor Presentation

Example: Simple Circuit Diagram

All examples and code from Mano “Digital Design” 3rd Ed.

Page 22: 8 Bit Risc Processor Presentation

Example: Simple Circuit HDL

module smpl_circuit(A,B,C,x,y);

input A,B,C;

output x,y;

wire e;

and g1(e,A,B);

not g2(y, C);

or g3(x,e,y);

endmodule

Page 23: 8 Bit Risc Processor Presentation

FUNCTIONAL DESCRIPTIONOF 8 BIT RISC PROCESSOR

Functional Block Diagram

Page 24: 8 Bit Risc Processor Presentation

TOL LEVEL ENTITY

Page 25: 8 Bit Risc Processor Presentation

MOVE UNIT

SHIFT UNIT

ARTHMETHIC UNIT

PROGRAM COUNTER

INSTRUCTION REGISTER

INSTRUTION DECODER

CONTROL UNIT

DATA MEMORY

PROGRAM MEMORY

RISC PROCESSOR CONSIST OF

Page 26: 8 Bit Risc Processor Presentation

RISC - MOVE UNITThe move unit performs two instructions:

---MOV dst, src

---MVI, immediate data

 

Page 27: 8 Bit Risc Processor Presentation

RISC - SHIFT UNITThe shift unit performs two instructions:SL dst, srcSR dst, src

Page 28: 8 Bit Risc Processor Presentation

RISC - ARTHMETHIC UNITThe arithmetic unit performs five instructions:1. INC dst, src2. DEC dst, src3. ADD src4. SUB src5. CMP src

ARITHMETIC UNIT

8

8 8

src A Cin Sub I[8] q_S q_C

Result_au S C Z

Page 29: 8 Bit Risc Processor Presentation

FUNCTIONALITY OF ARITHMETHIC UNIT

1. INC: The 2nd input to the adder is 0 and Cin is high, so the result comes out to be source +12. DEC: The 2nd input is Zero, Sub is high and Cin is low, the result is source + 1’s complement of 0 i.e. 1111_1111 which is also the 2’s complement of 1. So the result comes out to be source – 13. ADD: Cin and Sub both are low, so the 2nd input i.e. A, is passed as it is. The result comes out to be source + contents of register A.4. SUB: Cin and Sub both are high, so the 2nd input i.e. A, is converted to its 2’s complement form i.e. its negative value. The result comes out to be source - contents of register A.5.CMP: Its functionality is exactly the same as Sub, the only difference being that the result in this case is not stored in any register.

Page 30: 8 Bit Risc Processor Presentation

RISC - PROGRAM COUNTERThis unit performs three instructions:

1. JMP immediate offset

2. JZ immediate offset

3. JMPCD

16-BIT ADDER

PROGRAM COUNTER

q14

CD 16

16

rst

clk

16

Address Lines for Program Memory

0 S4

I[9:2]

0000- 0001

8

8

Page 31: 8 Bit Risc Processor Presentation

RISC - INSTRUCTION REGISTER AND DECODER INSTRUCTION REGISTERThe instruction register is a 11-bit triggered register. It loads the instructions on the positive edge of the clock. The instruction to the instruction register is fed from the program memory. The address for the program memory is taken by the value of the program counter.  INSTRUCTION DECODERThis unit is used to identity the instruction being executed. The input to this unit is the op-code part of the instruction which comes from the instruction register. Output of this unit is a 14-bit port where each bit represents one of the 14 instructions. All the instructions have different operation codes, so at time only one of the 14 bits will be high in the output

Page 32: 8 Bit Risc Processor Presentation

RISC – CONTROL UNITControl unit generates many control signals required by different modules and the top level entity. The inputs to the control unit are Decoded Instructions from the instruction decoder and the values of the flags. The output is many control signals.

Page 33: 8 Bit Risc Processor Presentation

RISC – DATA AND PROGRAM MEMORY

DATA MEMORYThe data memory is a block RAM of size 65kbytes. The data memory has a synchronous write and asynchronous read. The address lines for it comes from the concatenation of the contents of the registers C & D. The data line for the memory is bidirectional. Write and Read operations are controlled by the wr_data and rd_data signals generated by the control unit.  PROGRAM MEMORYThe program memory is a block RAM with 65536 locations and 11 bits per location. This stores the instructions to be executed by the processor. Read operation is asynchronous. The address line for the program memory comes from the 16-bit program counter.

Page 34: 8 Bit Risc Processor Presentation

SummaryProgrammable Logic Devices

BasicsEvolution

Field Programmable Gate Arrays (FPGAs)Architecture

Design FlowHardware Description LanguagesDesign Tools

Trends

Importance for Particle Physics Experiments

Page 35: 8 Bit Risc Processor Presentation

REFRENCES[1] R. Aceves, Desarrollo de un enlace inalámbrico paratelefonía fija empleando una FPGA. Final Project at theETSII, University of Valladolid, Spain, 2006. [2] M. Alonso, Diseño de un Entorno de Desarrollo de Altoy Bajo Nivel para un Procesador de Propósito Generalintegrado en FPGA, Final Project at the ETSII,University of Valladolid, Spain, 2003. [3] J. del Barrio, Desarrollo sobre FPGA de un Emulador deuna Planta de Microgeneración Eléctrica, Final Projectat the ETSII, University of Valladolid, Spain, 2004. [4] K. Chapman, “PicoBlaze 8-Bit Microcontroller forVirtex-E and Spartan-II/IIE Devices”, Xilinx XAPP213(v2.0), online at http://www.xilinx.com/xapp/xapp213.pdf, December, 2002

Page 36: 8 Bit Risc Processor Presentation

THANK YOU