2 ms·
This project actually uses Yosys. From a quick glance at the code, this tool essentially uses Yosys for the heavy-duty logic stuff [1], resulting in a JSON-base
by themulticaster 5y ago
This project actually uses Yosys. From a quick glance at the code, this tool essentially uses Yosys for the heavy-duty logic stuff [1], resulting in a JSON-based logic definition using a couple of standard cells (DFF, MUX, arithmetic, etc.) that verilog2factorio parses [2] and translates into predefined Factorio blueprints. The only part that I couldn't find would be laying out the cells into the overall blueprint (and performing routing).
[1] https://github.com/Redcrafter/verilog2factorio/blob/9691b7025a6b023ffaa82a1393ed8dfe8adeb10e/src/main.ts#L11-L12 https://github.com/Redcrafter/verilog2factorio/blob/9691b702...
[2] https://github.com/Redcrafter/verilog2factorio/blob/9691b7025a6b023ffaa82a1393ed8dfe8adeb10e/src/parser.ts https://github.com/Redcrafter/verilog2factorio/blob/9691b702...
- linux_is_nice 5y agoIt does simulated annealing in src/sim.ts, I think.