Bitcoin Forum

Bitcoin => Mining support => Topic started by: pr3m0nition on November 09, 2017, 08:38:45 PM



Title: Where to get started with writing ASIC Code
Post by: pr3m0nition on November 09, 2017, 08:38:45 PM
Does anyone have any knowledge, Or knows where to start with writing the machine language for ASIC's to be able mine. Essentially what i am looking to do is a DIY mini ant miner.

Any links, Or how-to's are appreciated.


Title: Re: Where to get started with writing ASIC Code
Post by: VRobb on November 09, 2017, 08:56:16 PM
All the software for miners and pools is open source.  Download it and study.


Title: Re: Where to get started with writing ASIC Code
Post by: NotFuzzyWarm on November 09, 2017, 08:57:04 PM
There is no 'writing machine language for ASICs'. The logic structures are 'hard wired' so to speak into the layout of the dies. There is no programming possible. Only a FPGA (Field Programmable Gate Array) is able to be programmed with a fixed logic structure that simulates the hard coding an ASIC uses. Even then they are still far slower than an ASIC.

Got a strong Computer Science background? You will need one for digging in this deep...

If you mean writing micro controller code to talk to the ASICs - follow vrobb's suggestion.


Title: Re: Where to get started with writing ASIC Code
Post by: pr3m0nition on November 10, 2017, 02:34:31 AM
So essentially, The engineers behind the ant miners designed all of the XOR logic behind the asics?

 I have looked for said material and have returned nothing.. Maybe i am just not looking in the right areas.

And yes, I Have a little bit of a background in computer science. Just trying to learn as much about this stuff as possible.


Title: Re: Where to get started with writing ASIC Code
Post by: SkyLakeMine on November 11, 2017, 05:11:50 PM
Does anyone have any knowledge, Or knows where to start with writing the machine language for ASIC's to be able mine. Essentially what i am looking to do is a DIY mini ant miner.

Any links, Or how-to's are appreciated.

At a high level, ASIC would be a hardware implementation of SHA-256 hashing algo. Someone please correct me if I am wrong.

Something like this? https://github.com/secworks/sha256 or this? http://async.org.uk/tech-reports/NCL-EECE-MSD-TR-2011-170.pdf

I just googled for it. I have no idea about the suitability of the links I just gave.

I have used this to try to understand the hashing algo.
https://www.movable-type.co.uk/scripts/sha256.html



Title: Re: Where to get started with writing ASIC Code
Post by: NotFuzzyWarm on November 11, 2017, 08:55:18 PM
Actually that Newcastle link is a very good one and spot-on as an introduction to why ASIC solutions are so bloody much faster vs using normal CPU's and math co-porcessors (aka GPU's).