stiggy87 / ZynqBTC

A Bitcoin miner for the Zynq chip utilizing the Zedboard.
102 stars 37 forks source link

sha256 implementation broken? #1

Open beschulz opened 11 years ago

beschulz commented 11 years ago

I did a quick test and

sha256_top(0x0000000000000000000000000000000000000000000000000000000000000000)

yields: 0xe0df7d03ea47e79cbb1d533001b348385bbf13384f83bce170bc1380c5268ea6

i would expect to get 0x66687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f2925

It the implementation broken, or am I just using it wrong?

best regards -- Benjamin

stiggy87 commented 11 years ago

Hi Benjamin,

The implementation is wrong. I was trying to do the cgminer optimized code, but it never really worked.

I am working on a better code and I should have that published in the next week.

But all means, fork and fix the code if you want/can.

Steve

stiggy87 commented 11 years ago

Also wanted to add. The code I will upload has working csim and will be synthesizable. I'll also try to write a wiki page on debugging/simulating in Vivado HLS.