burge91 wrote
I know I shouldn't be doing it in C++, I should be drawing it or something, but it's more fun for me to be able to see some kind of output to make up for the fact that I'm progressing through the book so slowly.
I assume that after you have the parts written in C++ that you are also writing them in HDL and testing them in the HardwareSimulator.
You might also be interested in
Logisim. It's a schematic-based logic simulator that can really help if you learn best by experimentation. Unfortunately it does not have any import/export features so you will still need to write HDL for the parts you make in Logisim.
You might want to look at Python. It has become my favorite language for writing simple programs like your logic simulations. It does support returning multiple values. You can write things like
a, b, c, d = DMux4Way(in, sel)
--Mark