Skip to content

Keyaan-07/ALU-for-8-bit-computer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALU-for-8-bit-computer

ALU-for-8-bit-computer hey, i started this project a long time ago, before joining slack, and left it in the middle, but now, i am rebuilding it. I had already built: clock, program counter, 2 registers. now, i'll be continuing to build it, starting with the ALU. I also hope to build the RAM, control circuit, display, in the coming time

this design is based on the albert paul mavino and ben eater design. It only has addition and subtraction functions because it is a very basic(SAP-1) computer. please note that connecting wires, each of which is made exactly as long as it needs to be, is a time taking process.so, even if i had added only few wires, it took a long time to do so.

session 1:

wired the ALU chips, 74ls283 and 74ls86. 4 bit full adder and 4 XOR gates, to the Registers(A and B). now, internal wiring of ALU is left which is for the next session. some pictures and a video are attached below.

main.mp4

YT timelapse of build

paperschematic

pic2

before

pic3 pic1

after

pic4

session 2:

added all the internal wiring left. Now i dont have any wires left lol. that is why i added a different coloured wire in the last joint. i have to get the blue coloured one from school now lol. next session will be based on checking(and probably troubleshooting) the ALU. here are the images and the videos:

video(yt)

YT timelapse of build

before

pic4

after

pic5

session3:

in this session, i'll be testing the ALU and writing how it works in detail. The ALU is working fine

video

YT timelapse of build

working

this ALU comprises of 2 74LS283's and 2 74LS86's. the 74LS283 is a full adder and the 74LS86 is the XOR gate ic. The data on register A is always inputted into the ALU, which is the same case for register B but the data from register B is first fed into the XOR gates then the Adders. This is because it is the way to subtract using two's complement. the first input of XOR is from register B and the second is an input called "SUB". when sub is on, all the bits are inverted. and also, SUB is fed into the carry in of the first adder. both the adders are connected by carry. carry out of first is fed into carry in of second. this leads to subtraction of the numbers. and they get added when SUB is turned off. SUB will be controlled by the control lines when the computer is fully built.

images

pic6

pic7

LSB means Least significant bit while MSB means most significant bit. in 10, LSB is 0 while 1 is MSB. in 10111111, MSB and LSB both are 1. (The output LEDs for the adders are not in LINE as the Registers because i was out of wires so i was not able to connect them to the Buffer IC, 74HC245) the lines made by me show the decreasing significance of bits. That's all. Thank you for reading....

About

ALU-for-8-bit-computer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published