https://github.com/Redcrafter/verilog2factorio/ Skip to content Sign up Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Project management - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] [search-key] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up Sign up {{ message }} Redcrafter / verilog2factorio * Notifications * Star 250 * Fork 4 This project will compile verilog (a hardware description language) into factorio blueprints. GPL-3.0 License 250 stars 4 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Security * Insights More * Code * Issues * Pull requests * Actions * Security * Insights main Switch branches/tags [ ] Branches Tags Nothing to show {{ refName }} default View all branches Nothing to show {{ refName }} default View all tags 1 branch 0 tags Go to file Code Clone HTTPS GitHub CLI [https://github.com/R] Use Git or checkout with SVN using the web URL. [gh repo clone Redcra] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio If nothing happens, download the GitHub extension for Visual Studio and try again. Go back Latest commit @Redcrafter Redcrafter Create LICENSE ... 9691b70 Apr 25, 2021 Create LICENSE 9691b70 Git stats * 18 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .vscode Initial commit Mar 21, 2021 samples Updated samples Apr 24, 2021 src drastically reduced sim errors and added optimization Apr 24, 2021 .gitignore Implemented new Nodes and some other stuff Mar 22, 2021 LICENSE Create LICENSE Apr 25, 2021 README.md README.md: Fix typo outpus -> outputs (#7) Apr 25, 2021 package-lock.json refactor main.ts Mar 21, 2021 package.json Initial commit Mar 21, 2021 tsconfig.json drastically reduced sim errors and added optimization Apr 24, 2021 View code Factorio verilog compiler Install Usage Examples samples/counter.v 6502 CPU from https://github.com/Arlet/verilog-6502/ README.md Factorio verilog compiler This project will compile verilog (a hardware description language) into factorio blueprints. Install Manually compile yosys (since the last release is quite old) and add it to your PATH. Run npm install to install all dependencies. Usage Run npm start ./samples/counter.v with verilog files as parameters The compiled blueprint will be output on the command line. The circuit will have inputs and outputs at the top in the order in which they were written in the code. Clock pulses are required to be exactly one tick high. (since adding edge detectors would produce a lot of overhead) Examples samples/counter.v module counter(input clk, input rst, input inc, output reg [3:0] cnt); always @(posedge clk) begin if (rst) cnt <= 0; else if (inc) cnt <= cnt + 1'b1; end endmodule image At the top in order clk, rst, inc and cnt. 6502 CPU from https://github.com/Arlet/verilog-6502/ (Currently not entirely working) image About This project will compile verilog (a hardware description language) into factorio blueprints. Topics compiler factorio verilog Resources Readme License GPL-3.0 License Releases No releases published Packages 0 No packages published Contributors 3 * @Redcrafter Redcrafter Luca * @justchen1369 justchen1369 * @jaller94 jaller94 Christian Paul Languages * TypeScript 100.0% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.