Log#39 : at a glance...

A project log for YASEP News archives

A backup of the blog before the host erases it. A good opportunity to review the development, twists and turns of this ISA !

Yann Guidon / YGDESYann Guidon / YGDES 04/09/2020 at 23:470 Comments

By whygee on Tuesday 28 February 2012, 17:37

How did I write 350 lines of code in one day to create a (mostly) working CPU ? It's thanks to a long and careful preparation, using diagrams like this one :

I use different colors to show the separate paths for control, address, data etc.

With this kind of general diagram, it's easy to code : just follow the wires and code the corresponding function...

A cleaner version will appear later :-)


With time, the diagram was further refined...

It's impossible to understate the importance of diagrams, schematics and sketches !
When you have one, writing the code is very easy...