Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

104 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ–ฅ๏ธ RISCPiP

RISC 5-stage 16-bit piplined processor with harvard architecture. And assembler to decode instructions to machine code.

๐Ÿ“‹ Instruction Set

One Operand Instructions Two Operand Instructions Memory Instructions Branch Instructions
NOP MOV Rsrc, Rdst PUSH Rsrc JZ Rdst
HLT ADD Rdst, Rsrc1, Rsrc2 POP Rdst JC Rdst
SETC SUB Rdst, Rsrc1, Rsrc2 LDM Rdst, Imm JN Rdst
NOT Rdst AND Rdst, Rsrc1, Rsrc2 LDD Rdst, offset(Rsrc) JMP Rdst
INC Rdst IADD Rdst, Rsrc1, Imm STD Rsrc1, offset(Rsrc2) CALL Rdst
OUT Rsrc - - RET (for call)
IN Rdst - - INT index
- - - RTI (for interrupt)

๐Ÿ–‹๏ธ Instruction

5-bits Opcode 3-bit src1 register address 3-bit src2 register address 3-bit dst register address 2-bit (not yet used)

๐Ÿ–‹๏ธ Instructions' Document

more detailed document for decoding the instructions click

๐ŸŽจ Schema

labeled_Schema

About

RISC Piplined Processor

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages