Comments
You must login before you can post a comment.
Author: Gaël Thomas
Project access type: Public
Description:
A complete 8-bit CPU starting from a nand for the students of Telecom SudParis/Institut Polytechnique de Paris. You can find the lab (in french, sorry:)) here: https://www-inf.telecom-sudparis.eu/cours/CSC4536/web/?page=TPs/logic/logic&soluce=true.
The processor consists in:
In details, we build the circuits one after the other, and as soon as we have implemented them, we reuse the ones provided by circuitverse. For the basic circuits, we have
For the CPU, we have:
The CPU executes the code "char x; while(true) x++;" where x is located at address 0xff. In details, the CPU executes this code, which is located in ROM:
Created: Nov 30, 2020
Updated: Nov 15, 2021
Just starting at learning cpu design as a hoppy and this is great.
I want more instructions specifically conditional branch instructions.
I was thinking to add a flags register and feed it into the decoder too.
The current structure of the instruction set does not have any free room in instrl register though to use for the conditions.
Wonder if you have any suggestions?
lets make an x64 bit cpu reigister and an 1gb ram or try to make better cpu than intel lol
Hi Douglas! A late answer :) Implementing the condition function is easy: you can use the bits 6/7 of insnh, which are used to build the bits 4 and 5 of the function when mod=0. After, I tried to add a flags register (just like the x86 rflags), but I failed: connecting it is really a mess!
Reply to Alan: 64 bits can't be done on circuitverse, the max is 32 bits. but i like the idea of it!
oh and the making of a better processor than intel might be impossible. idk however.