Pages:
Author

Topic: FPGA Development (SHA256 core) - page 2. (Read 13599 times)

member
Activity: 61
Merit: 10
June 12, 2011, 09:29:57 AM
#13
Locked out of the FPGA development thread due to the new 50 post restriction.

I mentioned in the main FPGA development thread (by fpgaminer) that I have coded an unrolled sha256 using additional pipelining and was asked about resource usage.  I am now compiling with the subscription edition Quartus II v11.0 with an evaluation license.  The resource usage is around 44K LE in a Stratix IV (EP4SE530H40C2) for a single core and the clock rate achieved is 240MHz.  This device should fit 4 SHA256 pairs with a hash rate approaching 1GH/s.  The EP4SE820 should be capable of 2GH/s.  I have found a system that uses 20 of these on a single card.  Yes this would be expensive to buy (>$200K I assume) but much smaller size and less power usage / heat than a cluster of computers running 6990s, maybe as low as 1-2kW total?

As for the cheaper Cyclone IV (EP4CE115F29I7), resource usage is 62K LE (38K combinational functions, 44K registers, it seems Cyclone cannot combine them effectively) and clock rate is 134MHz.  A single SHA256 pair with the additional pipelining would struggle to fit in this device, however I have another version which uses just the precalculation of H + K + W to improve clock rate, which will be smaller.  I have found a card with 27 Cyclone IIIs, wonder how much that would cost...

Interested to hear what other people have achieved in terms of clock rate and resource usage.

$200k for 1 GH/s? That's a deal right there..
no for 20GH/s, and very low power usage.

For that kind of money you can buy about 200GH/s through noisy over, power consuming, heat producing rigs.  FPGA has a long way to go unless your rich and have an irrational desire to go green regardless of the expense.
member
Activity: 70
Merit: 10
June 12, 2011, 09:26:31 AM
#12
The resource usage is around 44K LE in a Stratix IV (EP4SE530H40C2) for a single core and the clock rate achieved is 240MHz.

Did the you reach that frequency with or without placement constraints?

No placement constraints, and virtual pins defined.  Clock rate will probably drop when more of these are packed in but I would still expect > 200MHz on a full device.
newbie
Activity: 6
Merit: 0
June 12, 2011, 09:19:05 AM
#11
The resource usage is around 44K LE in a Stratix IV (EP4SE530H40C2) for a single core and the clock rate achieved is 240MHz.

Did the you reach that frequency with or without placement constraints?
member
Activity: 70
Merit: 10
June 12, 2011, 09:17:19 AM
#10

Interested to hear what other people have achieved in terms of clock rate and resource usage.

This post restriction seems a little bit...
Well lets start a new Newbie FPGA thread here Wink

I am still struggeling with a port of TheSevens seriel miner to a Lattice ECP33, the design fits but the P&R is refusing its work, says its too compilcated, frustrating...

The ECP33 seems like a slightly small device for this application.  What resource usage does the synthesis tool report? Any higher than 75-80% and you are gonna be causing the fitter grief.
member
Activity: 70
Merit: 10
June 12, 2011, 09:11:38 AM
#9
Wow - that's fairly impressive. I guess precalculating must pay off in a big way, though that's probably not really surprising if you think about it. Managed to get it submitting shares yet? (I'm also curious if you've found a clean way to handle the parts of W that can't be precomputed; it's obviously doable but the obvious ways are really messy.)

Also, you're right about the Cyclone FPGAs not being able to combine combinational functions with registers very effectively. All their registers are hard-wired to the output of the LUTs and other logic devices, which means that if you need to feed a register from somewhere else (like from the output of a register) you can't use the LUT attached to that register for anything else.

I wonder if this'd fit into the EP4CE75...

I haven't spent any time on optimizing W calcs, mainly because the worst case path delay is caused by calculation of the A parameter.  The H+K+W precalc is the simplest way to improve performance as H, K, W are all known in the previous stage.  I get slightly better performance gains by further pipelining the A and E equations, although this seems to benefit Cyclone more than Stratix IV, perhaps because of fast carry chains in the Stratix device?  The difficulty with pipelining the unrolled loop stages is that the equations for A/E change, and special cases need to be handled for the first and last few unrolled stages.

Also I haven't run this on an FPGA card yet, only simulated the core in ModelSim - still need to create a top level file similar to fpgaminers and cascade two of these SHA256 cores.  A fully unrolled and pipelined design will not fit in EP4CE75, you should be going for a partially unrolled solution.
hero member
Activity: 686
Merit: 564
June 12, 2011, 05:56:21 AM
#8
Wow - that's fairly impressive. I guess precalculating must pay off in a big way, though that's probably not really surprising if you think about it. Managed to get it submitting shares yet? (I'm also curious if you've found a clean way to handle the parts of W that can't be precomputed; it's obviously doable but the obvious ways are really messy.)

Also, you're right about the Cyclone FPGAs not being able to combine combinational functions with registers very effectively. All their registers are hard-wired to the output of the LUTs and other logic devices, which means that if you need to feed a register from somewhere else (like from the output of a register) you can't use the LUT attached to that register for anything else.

I wonder if this'd fit into the EP4CE75...
newbie
Activity: 24
Merit: 0
June 12, 2011, 04:57:13 AM
#7
The FPGA stuff sounds like a really interesting investment and in the (unlikely?) event that the bitcoin stuff doesn't pan out then I'm sure you could sell the rig to an internet security company or something. 3 months to make your investment back really doesn't sound bad, though.
member
Activity: 70
Merit: 10
June 12, 2011, 04:51:26 AM
#6
Nah I am estimating $200k for 40GH/s, with capacity to make $65k month at current difficulty if btc hits $30 again.
legendary
Activity: 1050
Merit: 1000
You are WRONG!
June 12, 2011, 04:45:20 AM
#5
Locked out of the FPGA development thread due to the new 50 post restriction.

I mentioned in the main FPGA development thread (by fpgaminer) that I have coded an unrolled sha256 using additional pipelining and was asked about resource usage.  I am now compiling with the subscription edition Quartus II v11.0 with an evaluation license.  The resource usage is around 44K LE in a Stratix IV (EP4SE530H40C2) for a single core and the clock rate achieved is 240MHz.  This device should fit 4 SHA256 pairs with a hash rate approaching 1GH/s.  The EP4SE820 should be capable of 2GH/s.  I have found a system that uses 20 of these on a single card.  Yes this would be expensive to buy (>$200K I assume) but much smaller size and less power usage / heat than a cluster of computers running 6990s, maybe as low as 1-2kW total?

As for the cheaper Cyclone IV (EP4CE115F29I7), resource usage is 62K LE (38K combinational functions, 44K registers, it seems Cyclone cannot combine them effectively) and clock rate is 134MHz.  A single SHA256 pair with the additional pipelining would struggle to fit in this device, however I have another version which uses just the precalculation of H + K + W to improve clock rate, which will be smaller.  I have found a card with 27 Cyclone IIIs, wonder how much that would cost...

Interested to hear what other people have achieved in terms of clock rate and resource usage.

$200k for 1 GH/s? That's a deal right there..
no for 20GH/s, and very low power usage.

So $200k for 20 GH/s.. Assuming that BTCUSD stayed above 15, it would only take a year to get your money back.
but after that you will get very rich Smiley and with nearly no power usage, means you dont have to pay for getting rich
donator
Activity: 392
Merit: 252
June 12, 2011, 04:36:02 AM
#4
Locked out of the FPGA development thread due to the new 50 post restriction.

I mentioned in the main FPGA development thread (by fpgaminer) that I have coded an unrolled sha256 using additional pipelining and was asked about resource usage.  I am now compiling with the subscription edition Quartus II v11.0 with an evaluation license.  The resource usage is around 44K LE in a Stratix IV (EP4SE530H40C2) for a single core and the clock rate achieved is 240MHz.  This device should fit 4 SHA256 pairs with a hash rate approaching 1GH/s.  The EP4SE820 should be capable of 2GH/s.  I have found a system that uses 20 of these on a single card.  Yes this would be expensive to buy (>$200K I assume) but much smaller size and less power usage / heat than a cluster of computers running 6990s, maybe as low as 1-2kW total?

As for the cheaper Cyclone IV (EP4CE115F29I7), resource usage is 62K LE (38K combinational functions, 44K registers, it seems Cyclone cannot combine them effectively) and clock rate is 134MHz.  A single SHA256 pair with the additional pipelining would struggle to fit in this device, however I have another version which uses just the precalculation of H + K + W to improve clock rate, which will be smaller.  I have found a card with 27 Cyclone IIIs, wonder how much that would cost...

Interested to hear what other people have achieved in terms of clock rate and resource usage.

$200k for 1 GH/s? That's a deal right there..
no for 20GH/s, and very low power usage.

So $200k for 20 GH/s.. Assuming that BTCUSD stayed above 15, it would only take a year to get your money back.
legendary
Activity: 1050
Merit: 1000
You are WRONG!
June 12, 2011, 04:28:07 AM
#3
Locked out of the FPGA development thread due to the new 50 post restriction.

I mentioned in the main FPGA development thread (by fpgaminer) that I have coded an unrolled sha256 using additional pipelining and was asked about resource usage.  I am now compiling with the subscription edition Quartus II v11.0 with an evaluation license.  The resource usage is around 44K LE in a Stratix IV (EP4SE530H40C2) for a single core and the clock rate achieved is 240MHz.  This device should fit 4 SHA256 pairs with a hash rate approaching 1GH/s.  The EP4SE820 should be capable of 2GH/s.  I have found a system that uses 20 of these on a single card.  Yes this would be expensive to buy (>$200K I assume) but much smaller size and less power usage / heat than a cluster of computers running 6990s, maybe as low as 1-2kW total?

As for the cheaper Cyclone IV (EP4CE115F29I7), resource usage is 62K LE (38K combinational functions, 44K registers, it seems Cyclone cannot combine them effectively) and clock rate is 134MHz.  A single SHA256 pair with the additional pipelining would struggle to fit in this device, however I have another version which uses just the precalculation of H + K + W to improve clock rate, which will be smaller.  I have found a card with 27 Cyclone IIIs, wonder how much that would cost...

Interested to hear what other people have achieved in terms of clock rate and resource usage.

$200k for 1 GH/s? That's a deal right there..
no for 20GH/s, and very low power usage.
donator
Activity: 392
Merit: 252
June 12, 2011, 04:26:39 AM
#2
Locked out of the FPGA development thread due to the new 50 post restriction.

I mentioned in the main FPGA development thread (by fpgaminer) that I have coded an unrolled sha256 using additional pipelining and was asked about resource usage.  I am now compiling with the subscription edition Quartus II v11.0 with an evaluation license.  The resource usage is around 44K LE in a Stratix IV (EP4SE530H40C2) for a single core and the clock rate achieved is 240MHz.  This device should fit 4 SHA256 pairs with a hash rate approaching 1GH/s.  The EP4SE820 should be capable of 2GH/s.  I have found a system that uses 20 of these on a single card.  Yes this would be expensive to buy (>$200K I assume) but much smaller size and less power usage / heat than a cluster of computers running 6990s, maybe as low as 1-2kW total?

As for the cheaper Cyclone IV (EP4CE115F29I7), resource usage is 62K LE (38K combinational functions, 44K registers, it seems Cyclone cannot combine them effectively) and clock rate is 134MHz.  A single SHA256 pair with the additional pipelining would struggle to fit in this device, however I have another version which uses just the precalculation of H + K + W to improve clock rate, which will be smaller.  I have found a card with 27 Cyclone IIIs, wonder how much that would cost...

Interested to hear what other people have achieved in terms of clock rate and resource usage.

$200k for 1 GH/s? That's a deal right there..
member
Activity: 70
Merit: 10
June 12, 2011, 02:34:27 AM
#1
Locked out of the FPGA development thread due to the new 50 post restriction.

I mentioned in the main FPGA development thread (by fpgaminer) that I have coded an unrolled sha256 using additional pipelining and was asked about resource usage.  I am now compiling with the subscription edition Quartus II v11.0 with an evaluation license.  The resource usage is around 44K LE in a Stratix IV (EP4SE530H40C2) for a single core and the clock rate achieved is 240MHz.  This device should fit 4 SHA256 pairs with a hash rate approaching 1GH/s.  The EP4SE820 should be capable of 2GH/s.  I have found a system that uses 20 of these on a single card.  Yes this would be expensive to buy (>$200K I assume) but much smaller size and less power usage / heat than a cluster of computers running 6990s, maybe as low as 1-2kW total?

As for the cheaper Cyclone IV (EP4CE115F29I7), resource usage is 62K LE (38K combinational functions, 44K registers, it seems Cyclone cannot combine them effectively) and clock rate is 134MHz.  A single SHA256 pair with the additional pipelining would struggle to fit in this device, however I have another version which uses just the precalculation of H + K + W to improve clock rate, which will be smaller.  I have found a card with 27 Cyclone IIIs, wonder how much that would cost...

Interested to hear what other people have achieved in terms of clock rate and resource usage.
Pages:
Jump to: