Bitcoin Forum

Bitcoin => Hardware => Topic started by: DoctorDoom on July 16, 2013, 05:44:58 PM



Title: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: DoctorDoom on July 16, 2013, 05:44:58 PM
e


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: goxed on July 16, 2013, 05:55:39 PM
I will use this thread to update my progress. I will update every once in a while to let people know my progress and how well the circuits are preforming. 

I will be creating custom digital circuits of a SHA2-256 Double Hashers for Bitcoin mining. I have already started on the first stage. The project will be written in Verilog. I chose Verilog, because it has better controls at the gate level than VHDL. I will not be using any C code for the hashing circuits. However I might use C code for the registers and connections to the computer, IE USB plug, and set-up data.

Looking at the Open Source FPGA code, I believe I can make a really good improvement over the Open Source code, which is converted C. I have vast experience in digital design and I have worked on many ASIC projects. However, I have not worked on a FPGA before, but I have worked alongside FPGA programmers to know the major problems that affect FPGAs.

To get more info on my background, go here:
http://www.cryptoextractor.com/crypto/author.html

Depending on the results, three things will happen. If I get really great results, then I would probably make some boards and sell them. If I get good results, I will probably buy old FPGA boards and reprogram them, and mine with them. I might sell some of the re-programmed boards. The last would be if I got OK results. Then I would just release the code as Open Source.


why don't you try developing scrypt mining for LTC for opensource community. There's avery high demand for it IMO.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Milan77 on July 16, 2013, 06:04:39 PM
I will use this thread to update my progress. I will update every once in a while to let people know my progress and how well the circuits are preforming. 

I will be creating custom digital circuits of a SHA2-256 Double Hashers for Bitcoin mining. I have already started on the first stage. The project will be written in Verilog. I chose Verilog, because it has better controls at the gate level than VHDL. I will not be using any C code for the hashing circuits. However I might use C code for the registers and connections to the computer, IE USB plug, and set-up data.

Looking at the Open Source FPGA code, I believe I can make a really good improvement over the Open Source code, which is converted C. I have vast experience in digital design and I have worked on many ASIC projects. However, I have not worked on a FPGA before, but I have worked alongside FPGA programmers to know the major problems that affect FPGAs.

To get more info on my background, go here:
http://www.cryptoextractor.com/crypto/author.html

Depending on the results, three things will happen. If I get really great results, then I would probably make some boards and sell them. If I get good results, I will probably buy old FPGA boards and reprogram them, and mine with them. I might sell some of the re-programmed boards. The last would be if I got OK results. Then I would just release the code as Open Source.


why don't you try developing scrypt mining for LTC for opensource community. There's avery high demand for it IMO.

+100


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: joeventura on July 16, 2013, 07:11:31 PM
I will use this thread to update my progress. I will update every once in a while to let people know my progress and how well the circuits are preforming. 

I will be creating custom digital circuits of a SHA2-256 Double Hashers for Bitcoin mining. I have already started on the first stage. The project will be written in Verilog. I chose Verilog, because it has better controls at the gate level than VHDL. I will not be using any C code for the hashing circuits. However I might use C code for the registers and connections to the computer, IE USB plug, and set-up data.

Looking at the Open Source FPGA code, I believe I can make a really good improvement over the Open Source code, which is converted C. I have vast experience in digital design and I have worked on many ASIC projects. However, I have not worked on a FPGA before, but I have worked alongside FPGA programmers to know the major problems that affect FPGAs.

To get more info on my background, go here:
http://www.cryptoextractor.com/crypto/author.html

Depending on the results, three things will happen. If I get really great results, then I would probably make some boards and sell them. If I get good results, I will probably buy old FPGA boards and reprogram them, and mine with them. I might sell some of the re-programmed boards. The last would be if I got OK results. Then I would just release the code as Open Source.


What would you define as "really great results"?



Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Milan77 on July 16, 2013, 09:48:49 PM
Maybe a good idea will also be implenmentig salted SHA1 algo for Nokia SL3 unlocking by bruteforce method.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Kuroth on July 16, 2013, 10:44:30 PM
Watching...


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: fpgaminer on July 16, 2013, 11:37:26 PM
Quote
Looking at the Open Source FPGA code, [...], which is converted C.
You mean https://github.com/fpgaminer/Open-Source-FPGA-Bitcoin-Miner (https://github.com/fpgaminer/Open-Source-FPGA-Bitcoin-Miner)?  That's not converted C.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Zalfrin on July 17, 2013, 08:41:47 PM
Quote
Looking at the Open Source FPGA code, [...], which is converted C.
You mean https://github.com/fpgaminer/Open-Source-FPGA-Bitcoin-Miner?  That's not converted C.

I originally didn’t know that code was converted C or not. I had assumptions that it was converted C, and asked in the past in different threads when I talked about this project. Then I talked to people from this forum, and all of them told me that it was converted C. So I believe it was converted C. I am sorry for calling it Converted C.

It's pretty obvious it's not converted C code, if you are talking about an automated C-to-HDL program. Those spit out garbage code. The Open Source code is human-readable - therefore not machine generated. ;)

Good luck. Personally I doubt there is much performance left on the table by the open source code, but please prove us wrong. :)


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: goxed on July 17, 2013, 09:01:02 PM
Maybe a good idea will also be implenmentig salted SHA1 algo for Nokia SL3 unlocking by bruteforce method.

Any URL listing the problem? It looks interesting.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Milan77 on July 17, 2013, 10:14:16 PM
Yes, with pleasure:

http://hashcat.net/wiki/doku.php?id=cracking_sl3

It is pretty good explained.

It is little modified salted SHA1 algo and should be around 5 times faster than algo used for BTC.
For sure it is possible to implement on FPGA. But there is a lot of pro guys with already done solution, not willing to share their work.

Atom (admin and creator of Hashcat and OCLHashcat) is great guy and very skillful programmer, he did a LOT of optimization on crypto algos, maybe he could do even more if someone gets his attention.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: fpgaminer on July 18, 2013, 01:25:33 AM
Quote
I still believe I can make a big performance jump over the code. I will try to get down to the gate level as much as possible and use all the logic there. I have even been looking through the specs and schematics to see how the slices work on the Spartan-6.
It's a lot of fun down there!  It's a shame the Spartan 6 architecture is so limited.  I suggest you take a look at the 7-series FPGAs, like the Kintex or Artix.  The architecture is nicer, and performance is much higher.  For example, I was able to implement a miner using the DSP48E1s on a Kintex.

Also, have you looked at bitfury's code?  He has the most performant code for Spartan-6 LX150 chips, and I would be shocked if anyone beat his record (in MH/s) on that chip.  It's optimized down at the slice level and manually placed.  https://bitcointalk.org/index.php?topic=228677.msg2417706#msg2417706

Unfortunately, or fortunately (depending on how you look at it), FPGA's will never beat ASICs in terms of performance per dollar, or performance per Watt.  So FPGA mining is a curiosity and plan-B sort of thing now.

Quote
For sure it is possible to implement on FPGA.
I coded up a quick SL3 cracker about a year ago.  It either ran on my Spartan 6 devkit, or the X6500, I can't recall.  I could probably dump the code to github if people are interested.  I didn't optimize it particularly well, just got it working.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Milan77 on July 18, 2013, 08:38:39 AM


Quote
For sure it is possible to implement on FPGA.
I coded up a quick SL3 cracker about a year ago.  It either ran on my Spartan 6 devkit, or the X6500, I can't recall.  I could probably dump the code to github if people are interested.  I didn't optimize it particularly well, just got it working.

FPGAMINER

Getting SL3 unlock to FPGA miners would give them new life. I do not have much of them but they will be more universal if someone keeps them running SL3.

Also I am not rich, but willing to support job with some BTCs.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: turtle83 on July 18, 2013, 09:54:11 AM
Also, have you looked at bitfury's code?  He has the most performant code for Spartan-6 LX150 chips, and I would be shocked if anyone beat his record (in MH/s) on that chip.  It's optimized down at the slice level and manually placed.  https://bitcointalk.org/index.php?topic=228677.msg2417706#msg2417706

Is there a compiled bitstream compatible with ztex out there?


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: polarhei on July 18, 2013, 10:14:37 AM
I will use this thread to update my progress. I will update every once in a while to let people know my progress and how well the circuits are preforming. 

I will be creating custom digital circuits of a SHA2-256 Double Hashers for Bitcoin mining. I have already started on the first stage. The project will be written in Verilog. I chose Verilog, because it has better controls at the gate level than VHDL. I will not be using any C code for the hashing circuits. However I might use C code for the registers and connections to the computer, IE USB plug, and set-up data.

Looking at the Open Source FPGA code, I believe I can make a really good improvement over the Open Source code, which is converted C. I have vast experience in digital design and I have worked on many ASIC projects. However, I have not worked on a FPGA before, but I have worked alongside FPGA programmers to know the major problems that affect FPGAs.

To get more info on my background, go here:
http://www.cryptoextractor.com/crypto/author.html

Depending on the results, three things will happen. If I get really great results, then I would probably make some boards and sell them. If I get good results, I will probably buy old FPGA boards and reprogram them, and mine with them. I might sell some of the re-programmed boards. The last would be if I got OK results. Then I would just release the code as Open Source.


why don't you try developing scrypt mining for LTC for opensource community. There's avery high demand for it IMO.

Memory is problem. He will


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Milan77 on July 18, 2013, 05:30:16 PM
Great, keep going!


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Magnate on July 18, 2013, 11:27:48 PM
If this does work you should be able to get twice the engines into one FPGA. There is money in this as there are plenty of FPGAs out there and I'm sure ppl would love to double thier hash rate!!


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: sveetsnelda on July 18, 2013, 11:37:13 PM
I coded up a quick SL3 cracker about a year ago.  It either ran on my Spartan 6 devkit, or the X6500, I can't recall.  I could probably dump the code to github if people are interested.  I didn't optimize it particularly well, just got it working.
I'd also be very interested in a git, and I'd certainly throw a tip your direction.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: BBQKorv on July 19, 2013, 02:03:40 AM
Only if you were here a year ago, now this is a bit late if not obsolete very soon. I'm hoping the best and I'm very interested to see how well you manage to do with this project.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: southerngentuk on July 19, 2013, 12:28:00 PM
Watching, good luck with this.  ;D


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: goxed on July 19, 2013, 01:15:44 PM
I had a great night last night for the Evil Genius project. I got my first pre-design partially working in software. The size of the SHA-256 circuit was reduced by 0.52 to 0.37 (not giving out the exact size reduction). The next step is I am going to build a full software implementation in an OpenCL Kernel. I don’t believe the performance of the Kernel will be better than anything out there, because I cannot increase the GPUs hardware and GPUs are not specifically built for SHA-256. It is more of a proof of concept thing. Also, I will still be able to pipeline the work with the smaller design. So every clock cycle, you will get data. After the full implementation, I will see if I can patent the design method. The circuit has 64 stages for one hash, so 128 stages for the double hash.

This is just the first pre-design. I still have some other things I want to try out. But this is very promising. I was very excited last night. I cannot wait to start trying some other things out to see how far I can push the SHA-256 circuit.  

Edit: It should be reduce ‘to’ 0.52-0.37, instead of ‘by’. I am cutting myself short  :). So now the circuit is basically half the size or smaller, so the performance increase will be 2x or more.

May I ask did you obtain the size reduction on a HDL module or was it something else?


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: goxed on July 20, 2013, 03:20:19 PM
Okay got it. Sometimes the synthesis software can also do logic optimization, which could reduce the size of hardware, though it's very rarely succesful in substantiial reduction of hand optimized designs.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: kramble on July 20, 2013, 05:11:25 PM
why don't you try developing scrypt mining for LTC for opensource community. There's avery high demand for it IMO.

Jasinlee has a project running at http://ltcfpga.com/ which seems fairly advanced (but NOT opensource)

I'm currently working on an opensource implementation (just for the LOLs), using the on-chip FPGA ram (it needs 1Mbit per hasher core). I've got the simulation running fine using a register array for ram. Unfortunately I'm only estimating around 1khash/sec performance per hasher core. The next step is to port it to my DE0-Nano board (it can only fit half the scratchpad, so its going to interpolate which is even slower). I'll post it on my github once its in a presentable state.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: goxed on July 21, 2013, 12:08:13 PM
why don't you try developing scrypt mining for LTC for opensource community. There's avery high demand for it IMO.

Jasinlee has a project running at http://ltcfpga.com/ which seems fairly advanced (but NOT opensource)

I'm currently working on an opensource implementation (just for the LOLs), using the on-chip FPGA ram (it needs 1Mbit per hasher core). I've got the simulation running fine using a register array for ram. Unfortunately I'm only estimating around 1khash/sec performance per hasher core. The next step is to port it to my DE0-Nano board (it can only fit half the scratchpad, so its going to interpolate which is even slower). I'll post it on my github once its in a presentable state.

That's awesome :) kudos to you. Would it be possible to load it on github so others can also try to use  your scrypt miner?


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: goxed on July 21, 2013, 12:11:48 PM
Just a quick update. I did finally get the OpenCL Kernel done and compiling. But I had problems running it, and one of my power supplies went bad. I have two power supplies for my computer, since I have two 5970 cards. I don’t know if the two where related or not. I believe the power supply is under warranty, so I will have to send it in. I do have a spare, plus I can always run one power supply with one card plugged in.

But I am going to skip the OpenCL. I have gotten my second pre-design done, and it has better space savings then the first. I will not report the space savings, since I don’t want people trying to figure out what I am doing. However it is another good space savings jump, but not as good as the last one. Also, I can continue to pipeline the data too. The design is very performance driven. It should be easy to meet timing with this design. I don’t think I am going to get any better than this design, so I am going to start writing the Verilog code starting tomorrow, while my wife and daughter are out. I drew out the first few stages, so I have a guide to follow.


:)


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: kramble on July 22, 2013, 07:01:50 PM
I haven’t looked into scrypts too much, but will work on it after this project. I can re-use the SHA-256 circuit for the scrypts project.

You mentioned you needed 1Mbit of ram per hasher core. What is the gear ration between the hasher and the RAM? Is it 1:1, or some other ratio? Basically, if the hasher runs at 100MHz, what speed is the RAM running at?

Thanks,

Doom

I'm running the core at 25MHz (it didn't seem worth pipelining the salsa mix, given that scrypt is essentially a serial algorithm, so I've implemented it as one huge combinatorial tree), and clocking the on-chip ram at the same speed (just to keep it simple). Using the on-chip ram makes the ram interface very simple as its just a 1024bit wide data path. External RAM (as would be needed for to get any sort of performance from the fpga) is going to be more complicated and would need to run faster, which might make pipelining the salsa worthwhile. Bear in mind that I'm a complete amateur with FPGA/logic design, so don't expect anything sophisticated  ::)

Anyway you can take a look at my code here https://github.com/kramble/FPGA-Litecoin-Miner any suggestions would be welcome. I created a thread to discuss it earlier today in the altcoins section https://bitcointalk.org/index.php?topic=260598.0


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: aspeer on July 22, 2013, 07:02:49 PM
Only if you were here a year ago, now this is a bit late if not obsolete very soon. I'm hoping the best and I'm very interested to see how well you manage to do with this project.

Yeah, looking back on this, I should have skipped the Crypto Extractor/Dominatrix Engine and went straight for the FPGA. But the good thing is there still a huge demand out there. The ASIC companies cannot meet demand, but how long with that be? But that is playing the “what if” game, and I have learnt to never play that game.

But on the flip side, there is a ton of FPGA miners out there. If I can give them a large boost in performance, it might make them last a little longer. Also there is scrypt (Litecoin) after this. Since scrypt uses a SHA-256 circuit, I can re-use it. I believe there still time for Litecoins.

But there is one more big plus. I might be able to work with an ASIC company. They would love to have a design that can drastically increase performance, which can give them an edge over their competitors. And if I can get it working on a FPGA, it just proves the design works. Plus, I was an Electrical Engineer with a proven track record with papers and patents, before becoming disabled. So there is still a large benefit out there. But this is majorly putting the cart in-front of the horse. I still got a lot of work to do, and being disable it comes and goes. But it looks very very promising right now, and I have nothing to lose and everything to gain.



your work is appreciated, im going to run mine until it costs more in power than its worth just to contribute to the network.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: dogie on July 22, 2013, 07:39:37 PM
Guys you do realise he is trying to improve FPGA efficiency, and patent the results? This is a hell of a long way from open source.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: xyzzy099 on July 22, 2013, 07:45:17 PM
Guys you do realise he is trying to improve FPGA efficiency, and patent the results? This is a hell of a long way from open source.

OMG he's been outed as a Capitalist!  Someone kill him before he gets away!   :o

Improving on stuff and making a profit from his efforts!  This cannot be endured...

 ::)


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: papamoi on July 22, 2013, 10:30:20 PM
hi

on wich fpga you ll use as basis ?

maybe it ll be interesting to make an asic from your fpga vhdl if it gives better hashing power so we ll be able to get a more powerful asic

keep us posted



Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: kramble on July 23, 2013, 09:33:18 AM
Cool, thanks for the info. I definitely will have to learn more about scrypts. I downloaded the paper, but just skimmed the info. One day, I will have to sit down, and go through how it hashes the data.

Yeah, I would definitely pipeline the data. Having a long combinational path will make it really slow. This is where the fun stuff happens. You have to figure out how many stages are the best. Then adding in memory makes it more of a challenge. I wonder if you can run the ram 2x as fast and have 0.5Mbits instead of 1Mbits. This will save some space, plus you will learn how to deal with different clock gearing. But I don’t know if that is possible or not, and you need the 1Mbits.   

No worries on the code. I am glad to see it is written in Verilog (more personal preference than anything). We all have to start somewhere.

My live code for my DE0-Nano board is actually using a 0.5MBit scratchpad (the EP4CE22 chip only has 600kBit ram), so I have to interpolate the missing half of the scratchpad (basically one extra pass through the salsa-mix for half the addresses). I can't really see how I can parallelise this as each ram read address depends on the results of the prior salsa-mix (scrypt was explicitly designed to be awkward to parallelise). From some reading I've seen that a larger scratchpad eg 8MBit can speed up the scrypt, which I don't quite understand yet, so once I've read up some more on it then perhaps some tricks will be apparent (yeah, I just wanted to get something running quickly so I coded a direct analog of the cgminer CPU scrypt.c code, rather than doing my research first  ::) )

The pipelining of the salsa-mix is definitely an issue, but its tricky due to the dependency of the scratchpad reads on addresses generated from the prior salsa. Adding extra register stages allows a faster clock, but needs extra clock cycles to complete, completely cancelling out any gain (and there is no gain from the pipelining itself due to the address dependancy). Once I understand the algorithm better, perhaps I can come up with a solution (I'll need to take a look at the CUDA code to see what's done on the GPUs).

Thanks for the kind words, and good luck.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: goxed on July 23, 2013, 12:59:12 PM
Guys you do realise he is trying to improve FPGA efficiency, and patent the results? This is a hell of a long way from open source.

OMG he's been outed as a Capitalist!  Someone kill him before he gets away!   :o

Improving on stuff and making a profit from his efforts!  This cannot be endured...

 ::)
At the time, Intel just launched their Itanium CPUs. So a month later, I got 2 brand new Itanium machines, and one with 128gigs of RAM and another with 64gigs. This had to be 12 years ago. At the time, I had more RAM, than most people’s hard drives. It was awesome.   


Itaniums had $hitty performance for all our X86 code, even recompiled with icc. Personal experience on SGI ALtix Itanium2 based servers. I think it was an EPIC sic. fail ;)


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Milan77 on July 23, 2013, 01:43:39 PM
@DoctorDoom

Please consider implementing SHA1 salted algorhytm also, for bruteforce SL3 logs.
And I hope that You WILL MAKE MONEY with this. I wish you to be like that.

There is nothing wrong to make money with inventions. Nikola Tesla had a lot of great ideas, but he did not make any money on them. So what happened is that he had to beg for money to keep projects running and most of them are never finished. And biggest looser was a mankind.



Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: dogie on July 23, 2013, 09:20:42 PM
This community rewards good deeds with donations, not forced patent license fees. Do you really think anyone will pay you when you require a fee? No thanks, first person to get the tweaks will leak all over the internet. Have fun trying to collect a dime.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Ridicuss on July 24, 2013, 02:27:04 AM
Doom,

Thanks for the work you put into this. I think it is great that the FPGa guys may be able to extend the life of their rigs, I for one would pay if its a reasonable cost to have an upgrade done. Thanks for your efforts and I hope it takes off.

Damn I must believe in capitalism I am willing to pay for something. GASP!!



Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: dogie on July 24, 2013, 02:37:00 AM
Quote
Also, I am not forcing anybody to do anything. They have a choice if they want my services or not. If they think I am charging too much, they can pass.

Yes you are. By patenting a new process, you're removing that process from the world for 20 years. No one can use it, release it or do anything else with it without giving you money.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: fpgaminer on July 24, 2013, 08:41:12 AM
DoctorDoom, I'm going to be straight with you.  Beyond learning/fun, there is absolutely zero reason to invest your time in optimizing a design for the Spartan 6 LX150 platforms.  As I said before, BitFury's open source design for the Spartan 6 LX150 is already at the zenith and will not be surpassed by any meaningful margin.  That design achieves ~300MH/s and should work on all existing Spartan 6 LX150 based miners (X6500, Icarus, Lancelot, Quad, etc).

I say this, because, from what I gather from your posts, you sound like an intelligent, creative, and hard working fellow.  I do not want to see those talents burned on a fruitless task.  If you're only doing this for fun/learning, then by all means continue.  But it sounds like you seek to benefit others from your work, and to profit from your work.  To achieve either or both of those goals I encourage you to focus your efforts elsewhere.

BitFury's design needs porting to the existing FPGA mining platforms.  It's really minimal work, and would boost everyone's performance by 50%.  That would benefit people very immediately, and I'm sure people would pay you for it.

Or you could focus on a strictly ASIC design, an scrypt miner, SL3 cracker, etc.  There are plenty of fruitful opportunities around.

Sorry if this post sounds malicious.  That is not my intention.  I'm not normally this blunt, but I've seen one too many threads like this.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Syke on July 25, 2013, 04:58:38 AM
Good luck beating the other bitstreams. A lot of work has already gone into optimizing mining. And since FPGAs generate so little bitcoins now, and every day you delay finishing your bitstream that number dwindles even further, there's just not going to be any interest in paying more than a few pennies for a new bitstream.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: LainZ on July 29, 2013, 10:36:54 PM
Hello DoctorDoom,

You seem late to this game !

hopefully I am pretty confident that your skills will interest one of those ASIC firms out there...(if you are what you pretend to be)

Your life is a tragedy. If it works out though, seeing your past work history...and throwing
Quote
3x
performance!

If not for you being disabled, if not for bitcoin very existence, then you could not support your family with just a little fun and spare time.Maybe even becoming "wealthy'.<- this headline is incredibly hard to believe, seems so fuckin good to be true.

Best of luck!

LainZ.

Also already job offers:

Quote
We are hiring! If you are skilled in IC design / HDL optimization, shoot us your CV at info@labcoin.com

Try contacting friedcat, ngzhang, bitfury, aiwill also.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: turtle83 on July 29, 2013, 11:42:31 PM
Even having a hundred dollars or two a month would be nice

How about this. Send bitstreams to early adopters with understanding that they do not share the bitstream with anyone (unless you ever decide to make it public), and they send you the earnings from the delta for 2 weeks.

Example I have 11 Ztex 1.15y (44 LX150 chips total) currently at ~9.5 GH/s. If you make it 3x = 28.5 GH/s , i would gladly pay you 19 GH/s worth of mining proceeds for 2 weeks. I would in fact point the equivalent number of boards to a pool of your choosing. Thats $30.84/day from me alone at todays difficulty, maybe by the time ur done its $10/day... maybe lesser...

I am sure im not alone in accepting this kind of offer... but this requires a leap of faith on both sides. (You trust that i donate the promissed hashrate to you, and I trust that you dont have something evil like timebombs in the bitstream)...

^ If you decide to opensource it(and provide bitstream that works with ztex firmware) , id donate a months worth of extra hash rate.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: klee on July 30, 2013, 10:24:30 AM
Dude ever considered ALCOR or Cryogenic Institute? That can keep you motivated, second chance. Though even this may won't be necessary - Singularity/Immortality is near! See 2045.ru ...
But you will need money! Finish this shit and I hope we can gain something too in a win-win scenario. We already do.
Cheers!


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: chunglam on August 01, 2013, 12:08:27 PM
Even having a hundred dollars or two a month would be nice

How about this. Send bitstreams to early adopters with understanding that they do not share the bitstream with anyone (unless you ever decide to make it public), and they send you the earnings from the delta for 2 weeks.

Example I have 11 Ztex 1.15y (44 LX150 chips total) currently at ~9.5 GH/s. If you make it 3x = 28.5 GH/s , i would gladly pay you 19 GH/s worth of mining proceeds for 2 weeks. I would in fact point the equivalent number of boards to a pool of your choosing. Thats $30.84/day from me alone at todays difficulty, maybe by the time ur done its $10/day... maybe lesser...

I am sure im not alone in accepting this kind of offer... but this requires a leap of faith on both sides. (You trust that i donate the promissed hashrate to you, and I trust that you dont have something evil like timebombs in the bitstream)...

^ If you decide to opensource it(and provide bitstream that works with ztex firmware) , id donate a months worth of extra hash rate.


That would be an interesting option. I will have to think about. I am paranoid about this, so it might be hard to get past the trust factor. With 3x or better performance, it is a large jump, so I want to make sure I play my cards right.

But like I said, I have to get the circuit working, before anybody would be interested. People need to see proof in the performance, especially when I am talking about 3x or more in performance, which is a vast improvement. Also, so many people have tried before me, and got nowhere near the performance I am getting.

The good thing is I shouldn’t have too much more work to go through on the coding. With the first hahser done, I can reuse a lot of the code. Then I can move onto sims and timings. But timings are looking good at 150MHz, and I don’t believe I can get much more out of it. I even have done a few experiments, and I only have gotten about 5 MHz jump for a large area increase, so it is not worth it.


I have 100+ ztex quad boards. How about 50/50 split the profit of delta hash power until the boards no longer profitable? Currently, my operating expense is 1/3 of my farm's output. With difficulty skyrocketing, I believe my farm can only last for a few months.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Isokivi on August 01, 2013, 05:56:33 PM
When enterpoint rolled out their cairnsmores and was struggling with getting a well performing bitstream for them I made a bounty thread with input from the community that ended up being one of the largest on the forum to date. A bitstream was produced that met and exceeded the bounty terms and the bounty was paid out. I'd like to suggest someone does this again. This time there needs to be a larger weight on the difficulty at the time a bitstream comes out. Im afraid I do not have the time atm to champion the bounty, but I will gladly pledge a portion of what extended life (earnings) this could end up giving my Cairnsmores.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Loredo on August 01, 2013, 07:56:48 PM
Sir, I just have a couple comments for you.  Since they're free, I'm certain that they will be worth every penny you have to pay for them.

First, the following dichotomy is as interesting as hundreds or thousands of similar ones we can find  spread over the last several hundred years, in all forms of technology:

fpgaminer(at post 50) : "BitFury's open source design for the Spartan 6 LX150 is already at the zenith and will not be surpassed by any meaningful margin.  That design achieves ~300MH/s ..."

DoctorDoom: "I can fit a lot more Double Hashing circuits on a LX150 chip. It looks like I will break the 1GH/s on a LX150 chip ..."

Taken at its face value, that speaks to advances and economisations you have affected in your implementation of the double hash.  If these advances are original, then that has indirect value in terms of greatly enhancing your reputation, and thereby, your human capital.

Human capital can't be spent at the store to feed one's family, though.  The problem you face is that, as the bitcoin network hash rate heads relentlessly towards 500 TH and beyond, 1 GHps on an FPGA with a wholesale or used price in the $50-range won't feed one's family, either. 

On the other hand, if you could produce an incontrovertible video of a single Spartan 6 demonstrably hashing at or near 1 GHps, then someone might determine that such functionality had direct, scalable value to them in some way.  Then, through license, or though venture, you might be able to release some of the potential value locked in your labor.

Best of luck to you.

One other point, re: the recommendation to contact the current bitcoin-asic vendors.  You worked for Intel.  Your skills, at least as self-represented, appear quite impressive.  Your world view is probably not the same as theirs.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: chunglam on August 06, 2013, 04:00:58 PM
Hi Doctor, any good news on the progress? In case you need access to ztex quad board, I can give you remote access to a linux VM with one or two ztex boards attached. PM me if you interested.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: JuniorJack on September 10, 2013, 11:34:50 AM
I coded up a quick SL3 cracker about a year ago.  It either ran on my Spartan 6 devkit, or the X6500, I can't recall.  I could probably dump the code to github if people are interested.  I didn't optimize it particularly well, just got it working.

Hi,

Is it possible to run SHA-1 in single clock cycle, similar to the SHA256 in your implementation ? And what is the max clock of
say Spartan 6 ? 1000 Mhz ? If yes, this means single xtex quad board can match a single ATI 5970, which is not that bad.

BR


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: Dexter770221 on September 10, 2013, 07:37:41 PM
I coded up a quick SL3 cracker about a year ago.  It either ran on my Spartan 6 devkit, or the X6500, I can't recall.  I could probably dump the code to github if people are interested.  I didn't optimize it particularly well, just got it working.

Hi,

Is it possible to run SHA-1 in single clock cycle, similar to the SHA256 in your implementation ? And what is the max clock of
say Spartan 6 ? 1000 Mhz ? If yes, this means single xtex quad board can match a single ATI 5970, which is not that bad.

BR
Max LUT speed at Spartan6 is 400MHz. Additional delays with routing and whole project runs at max 200MH.


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: JuniorJack on September 11, 2013, 09:49:48 AM
I coded up a quick SL3 cracker about a year ago.  It either ran on my Spartan 6 devkit, or the X6500, I can't recall.  I could probably dump the code to github if people are interested.  I didn't optimize it particularly well, just got it working.

Hi,

Is it possible to run SHA-1 in single clock cycle, similar to the SHA256 in your implementation ? And what is the max clock of
say Spartan 6 ? 1000 Mhz ? If yes, this means single xtex quad board can match a single ATI 5970, which is not that bad.

BR
Max LUT speed at Spartan6 is 400MHz. Additional delays with routing and whole project runs at max 200MH.

Hi,

Thanks! So the only chance to have performance boost is to fit 2 or more sha instances to run in parallel, but with unrolled SHA1, it might not be possible to fit it all.

BR


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: fpgaminer on September 11, 2013, 10:11:21 AM
Hi,

Thanks! So the only chance to have performance boost is to fit 2 or more sha instances to run in parallel, but with unrolled SHA1, it might not be possible to fit it all.

BR

https://github.com/fpgaminer/sha1_collider (https://github.com/fpgaminer/sha1_collider)


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: JuniorJack on September 11, 2013, 03:48:30 PM
Hi,

Thanks! So the only chance to have performance boost is to fit 2 or more sha instances to run in parallel, but with unrolled SHA1, it might not be possible to fit it all.

BR

https://github.com/fpgaminer/sha1_collider

Thank you! Will check it out.

Regards


Title: Re: Project Evil Genius – Custom SHA2-256 Circuits on a FPGA
Post by: poochone on September 30, 2013, 07:23:31 AM
Hi,

Thanks! So the only chance to have performance boost is to fit 2 or more sha instances to run in parallel, but with unrolled SHA1, it might not be possible to fit it all.

BR

https://github.com/fpgaminer/sha1_collider

How much u wont for full source of sl3 unlocker for fpga ??