de     

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:ztex_boards:ztex_fpga_boards:litcoin_mining_on_fpga [2013/07/15 14:49] 84.181.59.227en:ztex_boards:ztex_fpga_boards:litcoin_mining_on_fpga [2017/01/21 14:25] – [Approach 2: FPGA implementation using external RAM] stefan
Line 1: Line 1:
 ====== Litecoin Mining on FPGA's ====== ====== Litecoin Mining on FPGA's ======
  
-Due to many requests for LTC mining software for ZTEX FPGA Boards I took a deeper look into the scrypt algorithm. The goal was to estimate the development effort and the hash rates which can be expected. Results are presented here.+Due to many requests for LTC mining software for ZTEX FPGA Boards I took a deeper look into the scrypt algorithm. The goal was to estimate development effort and achievable hash rates. Results are presented here.
  
 **In order to prevent confusions and questions: ZTEX does not plan to develop Litecoin mining software.** **In order to prevent confusions and questions: ZTEX does not plan to develop Litecoin mining software.**
Line 10: Line 10:
   * The PBKDF2-HMAC-SHA-256 function can be neglected here. The computations can be done parallelly to the other computations and a single 64 cycle per SHA256 transformation loop is sufficient for many scryptROMix loops    * The PBKDF2-HMAC-SHA-256 function can be neglected here. The computations can be done parallelly to the other computations and a single 64 cycle per SHA256 transformation loop is sufficient for many scryptROMix loops 
   * Due to decencies of intermediate results each scryptROMix loop requires about 140,000 computation steps   * Due to decencies of intermediate results each scryptROMix loop requires about 140,000 computation steps
-  * Each scryptROMix loop (or pipeline stage) requires one 128 KByte vector (which has to be stored in some kind of RAM)+  * Each scryptROMix loop (or pipeline stage) requires one 128.125 KByte vector (which has to be stored in some kind of RAM)
  
 ===== Approach 1: FPGA implementation using Block RAM ===== ===== Approach 1: FPGA implementation using Block RAM =====
Line 16: Line 16:
 <code> <code>
             f             f
-r = n * ----------+r = n * ---------
         140,000/H         140,000/H
 </code> </code>
Line 22: Line 22:
 On XC6SLX150 n is 4 and estimated f is 300MHz. **Hash rate would be approximately 8.6 KH/s.** On XC6SLX150 n is 4 and estimated f is 300MHz. **Hash rate would be approximately 8.6 KH/s.**
  
-===== Approach 2: FPGA implementation external RAM ===== 
  
-One implementation approach would be fully unrolling the scryptBlockMix function. This results in an 68 stage pipeline and 8704 MByte memory. Pipeline clock if defined by the memory read / write delay. Alltogether, hash rate is limited by memory bandwidth b:  
-<code> 
-        b 
-r = ---------- 
-    262144 B/H 
-</code> 
- 
-On [[http://www.ztex.de/usb-fpga-1/usb-fpga-1.15.e.html|ZTEX-USB FPGA Modules 1.15]] b is 1600 MB/s. Hash rate limit according to the equation above would be 
-61 kH/s. Due to latencies of DRAM **a hash rate of 50 Kh/s** are more realistic. 
- 
- 
-**In order to prevent confusions and questions: ZTEX does not plan to develop Litecoin mining software.** 
 
 
Recent changes RSS feed Creative Commons License Powered by PHP Debian Driven by DokuWiki
[ZTEX Home] [Imprint] [Privacy policy]