r/ComputerEngineering • u/amy_the_cutie • Oct 19 '24
[Project] I designed my first 8-bit computer with a 16-bit address bus and a custom archeticture!
9
Oct 19 '24
OMGGG! This is so awesome! I recently built a 4-bit computer but it is no where near this level of cool.
7
u/amy_the_cutie Oct 19 '24 edited Oct 19 '24
thanks, but don't downplay your own achievement please.
also, this is my first ever computer engineering project😅.
been watching a lot of ben eater videos and others, and I decided I wanted to try it out, took me like 2 months to finish this behemoth of a project, and still working on an assembler for the assembly language of my custom archeticture, but I can definitely tell I had so much fun doing this project. (not that it wasn't frustrating to debug, believe me, it was).
3
u/BlueBubbaDog Oct 20 '24
Man, this is getting me excited to get my degree!
1
u/amy_the_cutie Oct 20 '24
I'm glad I could inspire you ^v^
though I did it without a degree... or going to uni in general tbh... but yeah, you can do way better with formal education, it was just a passion project of mine that I am still developing (I'm writing this comment while resting after hours of working on programming the assembler for the assembly language of this custom archeticture I built).
1
u/krzyzj Nov 10 '24
Are you still in HS?
1
u/amy_the_cutie Nov 10 '24
yesn't, I passed last year of high school, but with bad grades, so I'm redoing it rn.
1
u/krzyzj Nov 10 '24
Did you spend all your study time designing this (very impressive) computer? 😂
1
u/amy_the_cutie Nov 10 '24
no, actually, I designed it all in 2 months in the summer vacation after the end of the previous school year.
2
2
Oct 19 '24
Can you execute scripts with that?
2
u/amy_the_cutie Oct 19 '24
well, currently you would have to write it all in binary, but yes, you can, it's fully turing complete even, it has the same computation capabilities as the apple 1.
there is a full instruction set in the repository, where I documented exactly how to program for this computer's archeticture: https://codeberg.org/amelia36427/the_acx-8_computer/
I'm still working on an assembler, I'm at the syntax error high-lighting part of it, the assembler is written in C++.
also there is an emulator (also written in C++), I made for this computer, unlike the simulation of the design in logisim, the emulator runs at a respectable 10 megahertz, rather than the abyzmal 4.1 kilohertz that logisim gives me. the emulator both source code and binaries can be found alongside the circuit file of the logisim design, in the repository, alongside documentation on the emulator.
I've been working on writing a kernel for it, and while I have done it, I did it before I upgraded the address bus to 16-bits, so it's useless now, but I will write a kernel for it once I finish the assembler.
2
u/amy_the_cutie Oct 22 '24
update: now you can.
I'm done programming an assembler for the acx-8 archeticture and the assembler is in the repository of the project, you can write assembly code and execute it on this computer now :>
2
u/monkey_sigh Oct 23 '24
WTF!
1
u/amy_the_cutie Oct 23 '24
yeah, took 2 months to design, it was... a challenge, to say the least😅
1
u/monkey_sigh Oct 23 '24
Listen. I don’t even understand any of your post, to be honest. But as someone who loves all IT… whatever is that you doing is freaking cool.
1
u/amy_the_cutie Oct 23 '24
thanks ^v^
and yeah, I wouldn't expect most laypeople to understand it, but it's basically designing a computer like the apple 1 from the 70s, but from scratch with only electronics, that's how I'd describe it in layman speak lol.
1
u/onlyPressQ Oct 19 '24
Is this what I gotta do to get a job...
0
Oct 19 '24
[deleted]
1
u/MelodicAd3038 Oct 19 '24
Youre 19 with a bachelors degree?
3
u/amy_the_cutie Oct 19 '24
oops... mistranslation😅
that one is awkward😅
english is not my first language... weirdo arabic-to-english dictionary I used...😅
sorry...
I meant the certificate you get after finishing high school... here in syria we do call it "bachelor's degree" but that's just because the last year of high school is called "bachelor year" in arabic here in syria, I think that comes from the french "baccalaureate"... again, sorry for the confusion😅
15
u/amy_the_cutie Oct 19 '24 edited Oct 22 '24
if you wanna see the entire computer, here's the repository of the project: https://codeberg.org/amelia36427/the_acx-8_computer.git
update: I have finished making an assembler for the custom made assembly language for the acx-8 archeticture, it's currently in the repository of the project :>
note: this is made in the original logisim (version 2.7), not in logisim evolution
as for the specs of this computer:
RAM: 64 kilobytes
ROM: 256 bytes
STACK: 256 bytes
address bus: 16-bit for programs executed on the RAM, 8-bit for programs executed on the ROM
IO devices: a TTY display screen, and a keyboard... but can run up to 125 output devices and 127 input devices.
GPU: none, lol, at least not yet, I can easily hook one up tho, cuz all I need to do is hook it to the IO bus and give it an ID as an output device.
CPU: in logisim, 4.1 kilohertz, but in the emulator I made for it, 10 megahertz.
ALU: can do any logic bitwise operation, and all 4 arithmatic operations on 8-bit natural numbers, including calculating the remainder of an integer division.
registers: 8 registers, each saving 1 byte of memory, but the 8th register is reserved for flags.
a couple warnings: instructions can only be operated on different registers at a time, if an instruction takes 2 registers they must be 2 different registers, and if it takes 3 registers they must be 3 different registers.
the flags register always updates on any ALU operation that updates flags, but it also overwrites all the other flags, if you want to save the flags push them to the stack.