Тёмный

0102: Instruction Register Emulation & PCB Design | 16-Bit Computer From Scratch 

eryjus
Подписаться 874
Просмотров 465
50% 1

Description
I tackle the Instruction Register for the Emulator and the KiCad design. It's a simplistic circuit, so I capture each bit of work in a single take and adjust the speed accordingly.
But, do I really need an Instruction Register in the 16bcfs?
The Cherno's Game Engine: • Game Engine
Chapters
0:00 Intro
0:37 Part 1: The Instruction Register in the 16bcfs
5:12 Part 2: Instruction Bus Cleanup
6:40 Part 3: Emulating the Instruction Register
17:38 Part 4: KiCad Instruction Register Schematic
21:22 Part 5: KiCad Instruction Register Design
31:14 Part 6: Wrap-Up
Resources:
Kind Donations (see github.com/eryjus/16bcfs/blob... for details):
* Buy me a Beer: ko-fi.com/eryjus
* Architecture Reference (work in progress!): github.com/eryjus/16bcfs/blob...
RU-vid Links:
* 16-Bit Computer From Scratch Complete Playlist: www.youtube.com/watch?list=PL...
* ALU Playlist: • Arithmetic Logic Unit
* Clock Module Playlist: • Clock Module
* Register Module Playlist: • Register Module
* Intruction Cycle Playlist: • Instruction Cycle Modules
* Memory Module Playlist: • Memory Module
* KiCad Playlist: • KiCad Design
CircuitVerse Models:
* CircuitVerse Project Link: circuitverse.org/users/160845...
GitHub Repo:
* 16bcfs Complete Repository: github.com/eryjus/16bcfs
Additional Tags:
#Qt6 #Homebrew #Breadboard #PCB #KiCad #74LS #IC #SMD #schematic #CircuitVerse #ALU #555 #Computer #Emulator #SPI #Arduino #EEPROM

Наука

Опубликовано:

 

24 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@yashindane2844
@yashindane2844 5 дней назад
Hi Sir, in your entire build till now, what logic family devices are you using (74LS or 74HC)? Or is it a mix of both? What logic family is recommended for such a large build on breadboards. I have also started to build my own 16 bit cpu on breadboards.
@eryjus4594
@eryjus4594 5 дней назад
@yashindane2844 -- That is a great question! I made some mistakes with my choices, so let me help you not make the same mistakes. It's a long response. I made lots of mistakes! There are a few considerations when making that decision, which I did not think all the way through. One important thing to keep in mind is that LS logic is unable to drive HC logic high levels. What do I mean by that? LS logic can output a high value that is as low as 2v4 (read that as "2.4v" if you are not familiar with the notation) and still properly register that as high whereas HC logic accepts as high signal no lower than 3v5 (I think I have the exact voltages wrong, but go with me here). Important side note: The exact voltages are in the datasheet and you should get used to reading them. They are a slow read and important details will be buried in odd locations, so I recommend reading them for content and reading every word. That is a big task for some devices. The point here is that there is a difference between the high output of LS and the high input of HC and this difference will need to be corrected somehow. If it is not corrected, then you will get some odd errors while you are building your system out. They are difficult to track down. So, the answer is simple, then: don't mix them. I thought the same thing as well and then chose LS for the breadboard build and HC for the PCB build. And then I started to hook the 2 builds together for testing. You did not mention PCBs but I assume you will get there at some point as maintaining a breadboard in a working state is a big job as well and you will end up wanting something a little more permanent. It was in mixing the 2 builds for testing I realized I had a problem I had not considered -- the majority of my build over time was going to be in a mixed state. I was using incompatible logic. There are ways around it, but it is messy and you are testing in a state which is not the final configuration. You can mix LS and HC logic by using the HCT family instead of the HC family. HCT are HC logic but *TTL Compatible* (read: they can be driven by LS level inputs). Another thing to consider is: What you are going to connect as interfaces and what logic-levels do they use? That may force you into using HCT for anything that directly connects to that device. It is also likely you might need to level-shift the voltages (putting 5v into a 3v3 input will cook the device, guaranteed; 3v3 is not quite enough to drive a 3v5 input). LS is going to have a higher power draw than HC. So you might consider that based on the number of ICs you will require. Fan-out is also a concern. LS can only drive about 10 or so other transistors directly whereas I have read that HC can drive as many as 5000 gates directly (again, my numbers are probably not exact and you need to check the datasheet for each IC). Switching speed (or clock frequency) is also a concern. Some parts of your circuit may be forced into "A" family logic, where the "A" is "Advanced". These switch faster than the other typical LS and HC logic, but there is an increased cost/IC. These can be mixed easy enough with same logic type (AHC with HC) as long as the outputs of the AHC are slow enough to meet the requirements of the HC inputs. Finally, if you are using 16-bit computer as your entry point into digital electronics, I would encourage you to take a few smaller steps first. If you have not already, take a look at Ben Eater (ru-vid.com/group/PLowKtXNTBypGqImE405J2565dvjafglHU&si=Dg3z1Hduamzq8zjn) and James Sharman (ru-vid.com/group/PLFhc0MFC8MiCDOh3cGFji3qQfXziB9yOw&si=y2y5-VZ0JLyFpgLd). Both have 8-bit builds (the respective playlists are linked), each with different architectures. You see, I'm really no expert and I'm not convinced mine is working 100% yet. I doubt I have all the underlying issues sorted out and I know theirs work. Good luck and please share updates on your build!
@yashindane2844
@yashindane2844 4 дня назад
@@eryjus4594 thanks Sir, for taking time to respond with so many details! I have a doubt, can we say HCT can act as a Bridge between LS and HC family? Can HCT safely drive HC inputs?
@eryjus4594
@eryjus4594 День назад
Sorry it took so long to reply. @davehohacks has a great video on this. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-v0XSIeZpeCo.htmlsi=FB-CG_j99CGu8hfm
Далее
I built my own 16-Bit CPU in Excel
16:28
Просмотров 1,4 млн
I Designed My Own 16-bit CPU
15:46
Просмотров 1,9 млн
Damascus Steel From Milling Chips!
15:47
Просмотров 747 тыс.
World's worst video card? The exciting conclusion
24:23
New Recipe for Pi - Numberphile
14:29
Просмотров 286 тыс.
ОШИБКИ НА ANDROID 2
5:13
Просмотров 27 тыс.
$1 vs $100,000 Slow Motion Camera!
0:44
Просмотров 27 млн
Красиво, но телефон жаль
0:32
Просмотров 1,5 млн