Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

sha256 implementation broken? #1

Open
beschulz opened this issue Dec 3, 2013 · 2 comments
Open

sha256 implementation broken? #1

beschulz opened this issue Dec 3, 2013 · 2 comments
Assignees
Milestone

Comments

@beschulz
Copy link

beschulz commented Dec 3, 2013

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
Copy link
Owner

stiggy87 commented Dec 3, 2013

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

@ghost ghost assigned stiggy87 Dec 3, 2013
@stiggy87
Copy link
Owner

stiggy87 commented Dec 3, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants