Bitcoin Forum
October 19, 2018, 05:05:53 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: An Attempt to create a more complete freq value chart for the ant miner chip.  (Read 9200 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
colinrgodsey
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile WWW
May 09, 2014, 03:57:37 AM
 #21

the newer version of cgminer has some formula for this (all possible values)

Code:
static void anu_find_freqhex(void)
{
float fout, best_fout = opt_anu_freq;
int od, nf, nr, no, n, m, bs;
float best_diff = 1000;

anu_freqfound = true;

for (od = 0; od < 4; od++) {
no = 1 << od;
for (n = 0; n < 16; n++) {
nr = n + 1;
for (m = 0; m < 64; m++) {
nf = m + 1;
fout = 25 * (float)nf /((float)(nr) * (float)(no));
if (fabsf(fout - opt_anu_freq)  > best_diff)
continue;
if (500 <= (fout * no) && (fout * no) <= 1000)
bs = 1;
else
bs = 0;
best_diff = fabsf(fout - opt_anu_freq);
best_fout = fout;
anu_freq_hex = (bs << 14) | (m << 7) | (n << 2) | od;
if (fout == opt_anu_freq) {
applog(LOG_DEBUG, "ANU found exact frequency %.1f with hex %04x",
      opt_anu_freq, anu_freq_hex);
return;
}
}
}
}
opt_anu_freq = best_fout;
applog(LOG_NOTICE, "ANU found nearest frequency %.1f with hex %04x", opt_anu_freq,
      anu_freq_hex);
}

if thats too hard to read, here's the converted snippet from ScalaMiner (also probably hard to read... also untested, sorry)

Code:
def getAntMinerFreq(freq: Double) = {
var bestDiff = 1000.0
var bestOut = freq
var exactFound = false

for {
od <- 0 until 4
no = 1 << od
n <- 0 until 16
nr = n + 1
m <- 0 until 64
nf = m + 1
fout = 25.0 * nf / (nr * no)
if math.abs(fout - freq) <= bestDiff
if !exactFound
} {
val bs = if(500 <= (fout * no) && (fout * no) <= 1000) 1 else 0
bestDiff = math.abs(fout - freq)
bestOut = fout

val freqVal = (bs << 14) | (m << 7) | (n << 2) | od;

if(freqVal == fout) {
exactFound = true
bestOut = fout
}
}

bestOut
}
1539968753
Hero Member
*
Offline Offline

Posts: 1539968753

View Profile Personal Message (Offline)

Ignore
1539968753
Reply with quote  #2

1539968753
Report to moderator
1539968753
Hero Member
*
Offline Offline

Posts: 1539968753

View Profile Personal Message (Offline)

Ignore
1539968753
Reply with quote  #2

1539968753
Report to moderator
1539968753
Hero Member
*
Offline Offline

Posts: 1539968753

View Profile Personal Message (Offline)

Ignore
1539968753
Reply with quote  #2

1539968753
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539968753
Hero Member
*
Offline Offline

Posts: 1539968753

View Profile Personal Message (Offline)

Ignore
1539968753
Reply with quote  #2

1539968753
Report to moderator
colinrgodsey
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile WWW
May 09, 2014, 03:59:49 AM
 #22

Cgminer calculates values on the fly for any frequency for the U1/2s with the --anu-freq command. You can either run a U1 with cgminer and various frequencies in debug mode to see what values it generates, or you can audit the code that I wrote that generates it.

annnnd im an asshole for not reading the thread well enough. sorry ckolivas =\
philipma1957
Legendary
*
Offline Offline

Activity: 2254
Merit: 1352


Avalon 841 rocks


View Profile
May 13, 2014, 08:22:24 PM
 #23

Cgminer calculates values on the fly for any frequency for the U1/2s with the --anu-freq command. You can either run a U1 with cgminer and various frequencies in debug mode to see what values it generates, or you can audit the code that I wrote that generates it.

annnnd im an asshole for not reading the thread well enough. sorry ckolivas =\

no you are not an a-hole.   

 I am just a bit too extended  time wise to punch in all the freqs and test out the new  cgminer.

I will get to it one day soon or as BFL would say in two weeks or so.

I wanted to come up with an easy plug-in  chart and frankly The chart I have so far is easy but still short number wise.

I did a lot of testing with freq 387  and freq 393.75 some miners do like one over the other.

 I also have a miner that prefers 375 over 350 or 387 or 393 or 400 .

I have to have a few hours alone time to test cgminer and have not had the empty time slot open for me.


I mine alt coins with https://simplemining.net...
I see BTC as the super highway and alt coins as taxis and trucks needed to move transactions.
colinrgodsey
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile WWW
May 16, 2014, 01:31:17 AM
 #24

I'll see if i can make a table. I finally tested that code and it should work (will verify against some actual data), can probably just make a script to dump it out to CSV quick.... can throw that into excel or whatnot.
philipma1957
Legendary
*
Offline Offline

Activity: 2254
Merit: 1352


Avalon 841 rocks


View Profile
May 19, 2014, 02:30:10 PM
 #25

I'll see if i can make a table. I finally tested that code and it should work (will verify against some actual data), can probably just make a script to dump it out to CSV quick.... can throw that into excel or whatnot.

would be nice of you to do so.  thanks.

I mine alt coins with https://simplemining.net...
I see BTC as the super highway and alt coins as taxis and trucks needed to move transactions.
windpath
Legendary
*
Offline Offline

Activity: 1233
Merit: 1000


View Profile WWW
May 19, 2014, 04:43:45 PM
 #26

387 is awesome!

I have 6 Ants, one of them is missing a couple capacitors, and ran with a VERY high error rate at every setting I tried, was over 1% @ factory setting, and over 3% at other speeds...

Set it to 387 yesterday to give it a whirl...

Error rate: 0.00082799134 %

Calculator: http://www.coincadence.com/antminer-s1-hardware-error/

My worst Ant as far as errors goes has now set the bar for all the others Smiley


philipma1957
Legendary
*
Offline Offline

Activity: 2254
Merit: 1352


Avalon 841 rocks


View Profile
July 14, 2014, 12:20:07 PM
 #27

I put these links in one spot they will be helpful  for the s-1  maybe even the s-3








good links to help with over and under clock of the s-1.  also for under volting the s-1


original undervolt- under clock link

https://bitcointalk.org/index.php?topic=526060.0

youtube over clock link

https://www.youtube.com/watch?v=72FU4Z_n0B4

youtube for under volt


UnderVolt Antminer S1 Video-Guide
http://youtu.be/Cj9hgoUnpTc

https://bitcointalk.org/index.php?topic=688408.0
and the thread for that on bitcointalk

I mine alt coins with https://simplemining.net...
I see BTC as the super highway and alt coins as taxis and trucks needed to move transactions.
whonesta
Sr. Member
****
Offline Offline

Activity: 375
Merit: 250


View Profile
July 18, 2014, 03:54:53 AM
 #28


please try to underclock to 215.625

and to 206.25


the above codes were from my hand calculations, GH speeds added. 215.625 gives me 1100Gh and less than 1.1% error rate



https://bitcointalk.org/index.php?topic=589429.msg6485048#msg6485048

so 206.25

and 215.625   were both developed by klondike_bar

        option 'freq_value'    '6206'  #215.625M
        option 'chip_freq'     '215.625'       
        option 'timeout'       '18'   maybe 17

        #option 'freq_value'    '5002'  #206.25M 
        #option 'chip_freq'     '206.25'         
        #option 'timeout'       '19'  maybe 20


these 2 can be tested

Neither clock freq worked with the antMiner S3, nor did 275 fyi Wink

ZiG
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250


View Profile
July 18, 2014, 05:52:06 AM
 #29

I put these links in one spot they will be helpful  for the s-1  maybe even the s-3








good links to help with over and under clock of the s-1.  also for under volting the s-1


original undervolt- under clock link

https://bitcointalk.org/index.php?topic=526060.0

youtube over clock link

https://www.youtube.com/watch?v=72FU4Z_n0B4

youtube for under volt


UnderVolt Antminer S1 Video-Guide
http://youtu.be/Cj9hgoUnpTc

https://bitcointalk.org/index.php?topic=688408.0
and the thread for that on bitcointalk


S3 is a "little" bit DIFFERENT...chapter 3 of this...:

https://bitmaintech.com/files/download/BM1382_Datasheet_v3.0.pdf

ZiG
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!