Skip to content

HendrickZhou/ALU-dataset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALU-dataset

Dataset for simulating Arithmetic Logic Unit

How to get the dataset

run
bash check.sh More options and parameters will be added to this script. Right now it's run the default setting

Format of our dataset

follow the same convention of CIFAR-10 and CIFAR-100
Datas are stored in the form of pickle object
After unpickling the data we get a dictionary of 'data' and 'label'. 'data' will be an numpy array of int 0/1, following the order like this:
[0,1...0,1, //input A
1,1...0,0, //input B
1,0, //opcode
]

To make things simpler, only support 3 types of ops, and only support unsigned integer:

Arithmetic operations
Bitwise logical operations
Bit shift operations

ALU.py

class ALU will simulate the calculation process Expected excuation method:
bit_arr_in_1, bit_arr_in_2, bit_op_code, bit_arr_out = ALU_obj(decimal_1, decimal_2, decimal_op_code)

About

Dataset for simulating Arithmetic Logic Unit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published