Designing Pipelined RISC 32-bit processor by Logisim simulator - 22/12/2017 12:13 EST

Encerrado Postado há 6 anos Pago na entrega
Encerrado Pago na entrega

Objectives :

 Using the Logisim simulator

 Designing and testing a RISC 32-bit processor

Instruction Set Architecture

In this project, you will design a simple 32-bit RISC processor with sixteen 32-bit general purpose registers: R0 through R15. R0 is hardwired to zero and cannot be written, so we are left with fifteen registers. There is also one special-purpose 24-bit program counter (PC) register that can address at most 2 42

instructions. All instructions are 32 bits. There are three instruction formats, R-type, I-type, and J-type as shown below:

R-type format

8-bit opcode (Op), 4-bit destination register Rd, and two 4-bit source registers Ra and Rb.

I-type format

8-bit opcode (Op), 4-bit destination register Rd, 4-bit source register Ra, and 16-bit immediate:

Branch format

8-bit opcode (Op), two 4-bit source registers Ra and Rb, and 12-bit immediate

J-type format :

8-bit opcode (op) and 24-bit immediate constant

R-type instructions, Ra and Rb are two source register numbers, and Rd is the destination register number. For I-type instructions, Ra is the source register number and Rd is the destination register number. The immediate constant is 16 bits as in the MIPS architecture.

For the branch format, Ra and Rb are two source register numbers. The 12-bit immediate specifies the branch target offset. For J-type, the24-bit immediate constant is used for J (jump) and JAL (jump-and-link) instructions. It is used to update the PC register.

Instruction Encoding

Eight R-type ALU instructions, eleven I-type ALU instructions, one load, one store, two branch ,one jump register, and two J-type instructions are defined. These instructions, their meaning, and their encoding are shown in the following table

The shift and rotate instructions use the lower 5 bits of Immediate constant as the shift/rotate amount. The Load Upper Immediate (LUI) shifts the immediate constant left by 16 bits to load it into the upper 16 bits of register Rd. LUI can be combined with ORI to load any 32-bit constant into a register. The 16-bit immediate constant is zero-extended for ANDI, ORI, and XORI instructions, and sign-extended for all other I-type instructions. All other opcodes are undefined and should be treated as NOPs (no-operation)

Memory

Your processor will have separate instruction and data memories with 224

Words each. Each word is 32 bits or 4 bytes. Memory is word addressable. Only words (not bytes) can be read and written to memory, and each address is a word address. This will simplify the implementation.

The PC contains a word address (not a byte address). Therefore, it is sufficient to increment the PC by 1 (rather than 4) to point to the next instruction in memory. Also, the Load and Store instructions can only load and store words. There is no instruction to load or store a byte in memory.

Register File

Implement a Register file containing fifteen 32-bitregisters R1 to R15 with two read ports and one write port. R0 is hardwired to zero.

Arithmetic and Logical Unit (ALU)

Implement a 32-bit ALU to perform all the required operations:

ADD, SUB, SLT, SLTU, OR, AND, XOR, NOR, SLL, SRL, SRA, ROR

Addressing Modes

 PC-relative addressing mode is used for branch instructions.

o For branching (BEQ, BNE), the branch target address is computed as follows:

PC = PC + sign-extend (Imm12). Add the contents of PC to the sign-extended 12-bit Immediate.

 Direct addressing mode is used for jumps (J and JAL): PC = immediate24.

o The JR (Jump Register) instruction copies the lower24-bit of register (Ra) into the PC register.

 The LW and SW instructions use base-displacement addressing mode. The value of register (Ra) is added to the sign-extended 12-bit immediate to compute the effective memory address. Only the lower 24 bits of the address is used to address the data memory. The LW instruction loads data into register Rd. The SW instruction stores the value of register Rb in memory

Design de Circuito Engenharia Elétrica Eletrônica Engenharia Verilog / VHDL

ID do Projeto: #15927339

Sobre o projeto

5 propostas Projeto remoto Ativo em há 6 anos

5 freelancers estão ofertando em média $143 nesse trabalho

uetian09ee506

Hi, i can design RISC processor using Logisim Relevant Skills and Experience Electrical Engineer Proposed Milestones $200 USD - RISC

$200 USD in 3 dias
(276 Comentários)
7.3
raulbehl

Hello. Please check my profile to know a bit about me. Relevant Skills and Experience MIPS - 4 years Proposed Milestones $133 USD - Logisim

$133 USD in 2 dias
(61 Comentários)
5.8
ducdctoandh

Dear customer, I am really happy to help you out of this project. I would like to introduce that I am an freelancer with 100% JOB COMPLETED in VHDL/VERILOG. Relevant Skills and Experience FPGA/VHDL/Verilog Proposed Mais

$150 USD in 3 dias
(72 Comentários)
6.1
tetrabid247

Hello, my name is Roberto and I am an Engineer. I have experience with circuits design as well as telecommunications. I have time to start right away. Relevant Skills and Experience I'm proficient with circuit design Mais

$30 USD em 1 dia
(0 Comentários)
2.6