FPGA-README 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. This README contains extended details about FPGA mining with cgminer
  2. Icarus
  3. There is a hidden option in cgminer when Icarus support is compiled in:
  4. --icarus-timing <arg> Set how the Icarus timing is calculated - one setting/value for all or comma separated
  5. default[=N] Use the default Icarus hash time (2.6316ns)
  6. short Calculate the hash time and stop adjusting it at ~315 difficulty 1 shares (~1hr)
  7. long Re-calculate the hash time continuously
  8. value[=N] Specify the hash time in nanoseconds (e.g. 2.6316) and abort time (e.g. 2.6316=80)
  9. Icarus timing is required for devices that do not exactly match a default Icarus Rev3 in
  10. processing speed
  11. If you have an Icarus Rev3 you should not normally need to use --icarus-timing since the
  12. default values will maximise the MH/s and display it correctly
  13. Icarus timing is used to determine the number of hashes that have been checked when it aborts
  14. a nonce range (including on a LongPoll)
  15. It is also used to determine the elapsed time when it should abort a nonce range to avoid
  16. letting the Icarus go idle, but also to safely maximise that time
  17. 'short' or 'long' mode should only be used on a computer that has enough CPU available to run
  18. cgminer without any CPU delays (an active desktop or swapping computer would not be stable enough)
  19. Any CPU delays while calculating the hash time will affect the result
  20. 'short' mode only requires the computer to be stable until it has completed ~315 difficulty 1 shares
  21. 'long' mode requires it to always be stable to ensure accuracy, however, over time it continually
  22. corrects itself
  23. When in 'short' or 'long' mode, it will report the hash time value each time it is re-calculated
  24. In 'short' or 'long' mode, the scan abort time starts at 5 seconds and uses the default 2.6316ns
  25. scan hash time, for the first 5 nonce's or one minute (whichever is longer)
  26. In 'default' or 'value' mode the 'constants' are calculated once at the start, based on the default
  27. value or the value specified
  28. The optional additional =N specifies to set the default abort at N 1/10ths of a second, not the
  29. calculated value, which is 112 for 2.6316ns
  30. To determine the hash time value for a non Icarus Rev3 device or an Icarus Rev3 with a different
  31. bitstream to the default one, use 'long' mode and give it at least a few hundred shares, or use
  32. 'short' mode and take note of the final hash time value (Hs) calculated
  33. You can also use the RPC API 'stats' command to see the current hash time (Hs) at any time
  34. The Icarus code currently only works with a dual FPGA device that supports the same commands as
  35. Icarus Rev3 requires and also is less than ~840MH/s and greater than 2MH/s
  36. If a dual FPGA device does hash faster than ~840MH/s it should work correctly if you supply the
  37. correct hash time nanoseconds value
  38. The timing code itself will affect the Icarus performance since it increases the delay after
  39. work is completed or aborted until it starts again
  40. The increase is, however, extremely small and the actual increase is reported with the
  41. RPC API 'stats' command (a very slow CPU will make it more noticeable)
  42. Using the 'short' mode will remove this delay after 'short' mode completes
  43. The delay doesn't affect the calculation of the correct hash time