Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize FPGAs #644

Open
numberZero opened this issue Jun 18, 2023 · 1 comment
Open

Optimize FPGAs #644

numberZero opened this issue Jun 18, 2023 · 1 comment

Comments

@numberZero
Copy link
Contributor

A mesecon FPGA performs computation on each input change, which takes CPU time. But, it has only 4-bit input, which is just 16 possible states. Thus its output can be precomputed and stored in the metadata as a 16-byte string (technically only 64 bits are needed but packing into a 8-byte string would be too cumbersome).

Previous attempt: #631.

@FaberUnserzeit
Copy link

This is a good idea as long as FPGAs remain as they are, i.e. without the possibility of back-referencing registers in order to create flipflops, which is a change I wanted to propose, because I implemented it for building a computer in minetest by just using logic gates and FPGAs, and it turned out to work well:
https://github.com/FaberUnserzeit/mesecons/blob/master/mesecons_fpga/logic.lua
I built a 256 Byte RAM (with 2048 FPGAs) plus some 8 bit registers and other circuitry, and the performance was still good on an Athlon X3 with 8 GB of RAM. Mesecons FPGAs are fast enough already on my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants