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

by signa11 22 comments 154 points
Read article View on HN

22 comments

[−] buildbot 47d ago
Verilog to X compilers always bring me such joy. (There are several ones for Minecraft)

I wonder with the new Timberborn 1.0 update with automation if there’s enough to build a computer from water gates…

[−] skyberrys 48d ago
What a wild idea, but it makes sense! I haven't taken the time to get it working. I've heard a lot about Factorio, but I stayed away from it so far.
[−] konovalov-nk 47d ago
... Curtain rises.

A technical interview at a company that uses Verilog.

Near future.

A candidate walks in. Big Factorio fan. The interviewer smiles and gestures toward a gaming PC. Factorio is already running.

The candidate squints. "What, are we gonna speedrun science in 40 minutes?"

The interviewer grins. "That would be too easy for you."

"Oh, I get it. No-belts challenge? Deathworld, no weapons? Rampant? Space Age blindfolded?"

"It's a debugging session," says the interviewer. "You know. The thing you'll actually be doing on the job."

"Got it. So what are we debugging? Train signals? Belt congestion? Fluid throughput? Nuclear ratios?"

The interviewer turns the monitor slightly.

"Here is a Hello World program in Verilog."

A beat.

"It has been transpiled into a Factorio map."

The candidate leans closer to the screen. Eyes agitated.

The interviewer smiles. "You just need to find a few problems with it."

... Curtain falls.

[−] ur-whale 48d ago
Amazing work, and a fantastic idea, congratulations to the author. I am definitely trying this next week-end!
[−] ivanjermakov 47d ago

> I had a little bug in the ASCII font, so the smiley face is frowning.

Happens to the best of us!

[−] peaboff 47d ago
hey, I made this!

Thanks for showing it here!

[−] tomekowal 48d ago
Can it run Doom?