GithubHelp home page GithubHelp logo

iamnotdorian / open-source-fpga-bitcoin-miner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from progranism/open-source-fpga-bitcoin-miner

3.0 3.0 1.0 2.59 MB

VHDL implementation of a Bitcoin Miner targeting Altera Stratix IV FPGAs.

License: GNU General Public License v3.0

C 12.20% Shell 0.06% Tcl 6.07% Python 11.55% Verilog 28.55% VHDL 41.57%

open-source-fpga-bitcoin-miner's Introduction

Stratix IV FPGA Open-Source Bitcoin Miner

OrphanedGland ([email protected])
Send donations to : 1PioyqqFWXbKryxysGqoq5XAu9MTRANCEP

In this fork I have added two new SHA256 core implementations written in VHDL, along the option to vary the number of parallel SHA256 pairs.
The top level file is projects/VHDL_StratixIV_OrphanedGland/top/rtl/top.vhd.
The number of parallel SHA256 pairs is set via the NUM_CORES constant.

Two different types of SHA256 cores can be selected by setting the constant SHA256_SEL:

  • SHA256_SEL = 0 => Pre-calculation of H+K+W used
  • SHA256_SEL = 1 => Quasi-pipelining used

I have compiled the project with NUM_CORES = 4 and SHA256_SEL = 0 for the Stratix IV EP4SE530. Logic utilization is 68% and clock rate is 195MHz (Slow 900mV 85C Model). Total hash rate is given by the clock rate multiplied by the number of cores. The PLL should be adjusted to match the clock rate that can be achieved.

Note that this design has been simulated but not tested on hardware.


Original readme below:

Terasic DE2-115 FPGA Open-Source Bitcoin Miner


Copyright (C) 2011 [email protected]

See LICENSE.txt

Purpose

To promote the free and open development of an FPGA based Bitcoin mining solution.

http://www.weusecoins.com/

http://bitcoin.org/

Project Status

Project is fully functional and allows mining of Bitcoins both in a Pool and Solo. It also supports Namecoins.

Current Performance: 80 MHash/s

Note: The included default configuration file, and source files, are built for 50 MHash/s performance (downclocked). This is meant to prevent damage to your valuable chip if you don't provide an appropriate cooling solution.

Installation Instructions

Required Equipment:

  • DE2-115 Development Kit (this is not a DE2. It has a Cyclone IV EP4CE115.)
  • USB Cable
  • Windows PC (Linux is also supported, but not documented)
  • Altera's Quartus II (installed on PC)

###Instructions:

####Do These Once:

  1. IMPORTANT: Please remove the clear acrylic cover on your DE2-115 board. This will restrict air flow and may cause the chip to overheat.

  2. Navigate to 'scripts/mine' and EDIT 'mine.tcl' (open in Notepad or other text editor)

  3. Locate the following lines:

    set url "http://btcguild.com:8332" set userpass "[email protected]:yourpasswordhere"

Edit accordingly (N.B. the script has only been tested with btcguild and deepbit so far).

  1. Save and close 'mine.tcl'

####Do these each time you want to run the miner:

  1. Connect the DE2-115 Development Kit to your PC through USB, connect its power, and turn it on.

  2. Ensure that the DE2-115's drivers have been installed successfully on your PC. Consult the DE2-115 User Guide for more information on setting up the DE2-115.

  3. Navigate to 'scripts/program' and run 'program-fpga-board.bat'.

  4. Follow the instructions provided by the program-fpga-board script. Select the correct cable and programming file. Once programming has succeeded, the DE2-115 is now ready to mine!

Note: This script sometimes fails immediately upon execution. Please try running it again.

  1. Run 'mine.bat'

  2. If working correctly, 'mine.bat' will leave a console window open which will fill with diagnostic information as it runs.

  3. Profit!

####Notes:

  • You need to re-program the DE2-115 every time it is powered off and on again. Repeat steps 1 through 7 for subsequent uses.
  • Your PC needs to stay on and connected to the internet. It is acting like a controller for the FPGA, feeding it data and getting back valid hashes.

Thank You!


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[email protected]
Donation Address: 1E1XgiJAzm1Wn7ZWuhkryzBoViBJ7CcRCQ

Donations are most welcome! They will be used to buy more equipment. I'm currently trying to get
an ethernet module up and running so the miner can run all on its own.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQIcBAEBAgAGBQJN1dAzAAoJEFFoGj2A5YKRt/IP/3LaZlEWvdUpAxcs5ANS3fcA
NdKFiIycfnBKtmXjXiHQk4DZY+tbvuPPggzFHBA7k+3wV3WBOF2rjQiorODZff6q
xb6gSVINUXucv/+SDzqx8CtjMa17wzSayiczC03t+IICYs2/atdLAFvbr0LwdbqZ
oBQRgYK4hD39fQzD8v/L26glh3va72ZibuO043uH/WMFgcQseTFHF7QPLJm0k0A/
nx5p0cTtqqSf4g9MQICnNU8MGVrXXOGZU4DeItbJjNcvsomzmibha+9jQ2K8XD8F
KzbdTK+YzvdzcDMaeOgs70SnVEFfUS1ykbdDC850M6qkRP79HBqH7Neq1Rld5ktj
Mrd2hHC4NC0fgMD3hUbTjfIcCZOPwKYvp5oCLYYO1CqzV64Ag0o9qZDr8FS+9Npv
PEbWQpQuZqqtkhppVcCmOv4bl8XWTuQJEoxP8rWkJdfhkDUt5hwQsFrMQB7goXDc
pJZu1wnWdzpgcDyNjkNDp6sqnJGzCgft7o3hPiZO79BZZRLtdRSMHa0RdJJK5zLv
8JqOJCJUFhVZHSKsHyGdJHppjKk/yZbBGLuJUTAfrMk5I/X5b/V9TGiWKoPN3zce
Hdd5LQF5Z881wCgrnPz2dwR5oXMUcWqd//ZAs7Jcnvp6Bz5HWrFH5FBgpfg0K3c6
qBmd3GhQgxnFsBW62dAJ
=Lvja
-----END PGP SIGNATURE-----

open-source-fpga-bitcoin-miner's People

Contributors

fpgaminer avatar iamnotdorian avatar interfect avatar progranism avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dutching

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.