Weird title, sorry. Let me try and explain.

Goal: Convert simple higher level script into a low level logic gate mess. Basically, I want to build my own custom computers in Factorio with circuit networks. I can easily create any type of logic gate that I want, similar to how computers Minecraft have been built, but with more options.

It would be super nice to code in something similar to Python but have it “compile” into clusters of logic gates. Of course, functionality would be extremely limited, but that is OK and I don’t need to boil the ocean… yet…

(TBH, this sounds really close to what I know about programming FPGAs.)

  • K2yfi
    link
    fedilink
    arrow-up
    4
    ·
    4 days ago

    Sounds like you should take a look at https://www.nand2tetris.org/. Basically it walks through the process of building up a game like Tetris starting from logic gates. It has you write a very simple compiler for a mini language where you’ve built everything up from the base logic gates level, so it should be a pretty good guide for what you want.