Re:Show HN: Pylectronics – Reproduce digital electronics in ...
by pbsds on Monday August 30, 2021 @01:02PM
(#28357921)
You could implement your design in nmigen [1], use it to generate either verilog or rtlil, then use yosys (via [2]) to reduce it to an AND and NOT circuit (using the 'aigmap' command), then visualize it with [3]
Re:Show HN: Pylectronics – Reproduce digital electronics in ...
by sigmaprimus on Sunday August 29, 2021 @11:03PM
(#28352458)
Sounds like a fun project, many years ago I built a POV led wand that used an 8 bit parallel adder made from transistors, a 555 timer and an EEPROM.
That might be a good hello world type project to tackle on your way to the CPU goal.
Re:Show HN: Pylectronics – Reproduce digital electronics in ...
by gravypod on Monday August 30, 2021 @12:02AM
(#28352709)
Do you have any demos of how this library works when used in something complex? Also, do you have any ways to export the logic defined into some data structure? This would allow you to bolt on compilers to translate into a netlist or FPGA.
Re:Show HN: Pylectronics – Reproduce digital electronics in ...
by fgarci03 on Monday August 30, 2021 @05:17AM
(#28353959)
Now there are a bunch of words I don't understand here :D
Right now there are no demos. I only have a few loose components, not enough to build anything useful (the tests do instantiate them correctly, does it count as a demo? :D)
Regarding exporting the logic, it could be a nice idea, but I have no idea where to start. Thoughts?
[1]: https://github.com/nmigen/nmigen
[2]: https://yowasp.org
[3]: https://github.com/nturley/netlistsvg
https://en.m.wikipedia.org/wiki/Value_change_dump
Right now there are no demos. I only have a few loose components, not enough to build anything useful (the tests do instantiate them correctly, does it count as a demo? :D)
Regarding exporting the logic, it could be a nice idea, but I have no idea where to start. Thoughts?