Skip to content
Tech News
← Back to articles

A Verilog to Factorio Compiler and Simulator (Working RISC-V CPU)

read original more articles
Why This Matters

The v2f tool bridges the gap between hardware description languages and the popular game Factorio, enabling players to design and simulate combinator circuits using Verilog. This innovation opens new avenues for both hardware enthusiasts and gamers, fostering creativity and understanding of digital logic within a popular simulation environment. It also introduces a programmable API, making circuit design more accessible and customizable for users with coding skills.

Key Takeaways

v2f

This file describes this repository and tool. v2f is short for "Verilog to Factorio."

Purpose

The purpose of this tool is to allow Factorio players to use Verilog to describe combinator circuits. An additional purpose is to provide a simple API for describing combinators, so players can manually create designs.

Take a Verilog file and outputs json blueprint strings that can be imported in Factorio 2.0.

Exposes a Rust and Lua API for players to make designs in code.

How to get started

Just a webpage please

Ok here you go

This isn't the full flow. Getting Yosys in the browser is very painful, so here is just the backend flow with a GUI slapped on top. You can place combinators and simulate them. This is what it looks like:

... continue reading