Skip to content

Final project on "Digital design" discipline, made in 2 semester at NSU FIT.

Notifications You must be signed in to change notification settings

TakeoutSpace18/SimpleProcessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

SimpleProcessor

Specifications

Word size: 32 bit
Memory address width: 16 bit
8 registers

ISA

Register type instructions

Syntax: opcode[5bit] | r1[3bit] | r2[3bit] | r3[3bit]

name opcode description
add 0 r3 = r1 + r2
sub 1 r3 = r1 - r2
div 2 r3 = r1 / r2
mul 3 r3 = r1 * r2
mod 4 r3 = r1 % r2
sil 5 r3 = 1 if r1 < r2, else r3 = 0
sie 6 r3 = 1 if r1 == r2, else r3 = 0
copy 7 copy r2 value to r1

Immediate type instructions

Syntax: opcode[5bit] | r1[3bit] | arg[16bit]

name opcode description
jmp 8 jump to <arg> if r1 == 1
load 9 load value from <arg> in RAM to r1
store 10 store r1 value to <arg> in RAM
set 11 set r1 value to <arg>
halt 12 do nothing

About

Final project on "Digital design" discipline, made in 2 semester at NSU FIT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published