Bitcoin Forum
December 15, 2024, 01:02:15 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ... 181 »
  Print  
Author Topic: Klondike - 16 chip ASIC Open Source Board - Preliminary  (Read 435376 times)
BkkCoins (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
May 25, 2013, 04:35:59 AM
 #981

Seems reasonable. I'd question the cost of milling out so much metal but maybe with CNC it's pretty cheap to do that. Wouldn't milling a small 0.5mm raise and deeper holes at the connector pins be less CNC time? I don't know about that. One thing - there is 3 other small pads under the buck regs. They should have raised pads to match but I can't tell if that's already accounted for.

I can't say if this is the best method. It could be fine or having more contact with the board mask overall may still provide quite a bit more heat transfer. Even though the board is not a great conductor there is a lot of surface area that is lost by using raised pads. Before committing to a large purchase I'd suggest testing both ways to see the temperature difference.

BTC donated to scope fund!
Thank You!
I'm still working on getting bitcoin into $$. FC4B has nothing until Tuesday now.

@ BkkCoins
How many bytes of data to you have to shift into each Avalon chain to configure the chips?
Off the top of my head I think it's 32 midstate, 24 pre-calc, 12 data, 8 clk cfg and with 8 chips/bank 32 bytes nonce data. Maybe it's not 12 bytes data. I don't have it in front of me now but I recall the Avalon driver having 12 bytes in it's task structure.

That would be 84 same for both banks + 32 different = 116 bytes.
At 4Mbps that's 29uS, though I think it will take a bit longer due to software clocking limits.

edit: oops. That's bytes not bits. x8 = 232 uS.

-ck
Legendary
*
Offline Offline

Activity: 4312
Merit: 1649


Ruu \o/


View Profile WWW
May 25, 2013, 05:14:14 AM
 #982

@ BkkCoins
How many bytes of data to you have to shift into each Avalon chain to configure the chips?
Each avalon task is 56 bytes. One is sent to reset the device only on startup, and then one for each (10) chips to start working or go idle, so a fully configured 3 bank avalon is sent 24 separate tasks each cycle. Therefore on each cycle of work, 24*56bytes is sent, and a share result is 64 bytes and on average one share is found per work item, so 24*64 bytes is returned. The timeframe depends on the Mhz it's running at, with 300 being the max. At 300Mhz it completes a full work cycle of one nonce range / 10 / 300Mhz so 2^32 / 10 / 300,000,000 = 1.43  seconds.
The current MCU has no synchronisation/EOL to tell you where results start and finish and a clunky mechanism to start receiving more work and can only take a full set of work at a time for all chips instead of separately.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
BkkCoins (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
May 25, 2013, 06:35:32 AM
 #983

There is a few differences between how the Avalon and the Klondike handle data, even though the same data needs to end up going into each ASIC.

In the Avalon driver it divides the nonce range and passes it with the work data. In Klondike this is done in the PIC local to the ASIC chain, to reduce data xfer.

In the Avalon the pre-calc is done in the FPGA but in Klondike this will be done either in the driver or the PIC. I'd prefer to fit it in the PIC so that less data is xfer'd (24 bytes/work task).

If an Avalon work task is 56 bytes then that must be without the nonce start values as that alone is 40 bytes (10 chips x 4 bytes).

Things like clock config, fan speed, temp target, will be handled in the PIC so they don't need to keep being re-sent by the host driver but there are a couple cmds to query/set them.

The Avalon sends back a result nonce together with the original work data but in Klondike I don't plan to store the work data after pushing it to the ASIC, as this space can be used for queueing work. So the host driver would need a table of work sent for each board.

For Klondike a work task would look like this: (where 002 is an example board id)

W002<midstate><data>
where W is work cmd and 002 is board ordinal id, then binary data follows. Each PIC can queue a 1-2 work tasks so that when a nonce range is finished it can immediately push new work. Each PIC can use a local clock hash rate so that all boards aren't limited by the slowest (don't know if there is much variance in chips). Each PIC uses a hardware timer tick count to know when a nonce range should be completed.

And result nonce would come back to the host driver as,
R002<nonce>
so the driver can know which work unit it matches for checking and relaying.

The "master" PIC with the USB connection would be ordinal id 000, and any data with other ID would be simply copied out to the I2C bus, where the correct chain board would recognize it's ID and use it. Hence, the number of boards chained is limited by the utilization of the I2C bus.

My intention is to reduce host data xfer so that as many boards can be chained as feasible on a 100 KHz I2C bus.

Status items like fan speed, temperature, board count can be queried as needed by the host using a status cmd S, or set using a config cmd C. Both with board id, eg. S003. There is also an enable cmd E which can enable/disable a board to save power when no work is available - this just controls the clock to the ASICs.

This is the scheme I'm coding right now. My intention is to keep it simple, both to understand and for the PIC to work with, but also flexible enough that a long rigid data structure like the Avalon uses isn't required. I am interested in feedback before I get too far along, especially from ckolivas or kano who have had to code several drivers and know where difficulties may lie. My plan is to write the driver by adapting from the Avalon one where needed, but perhaps there is a better/simpler driver model for this cmd based architecture.

steamboat
Hero Member
*****
Offline Offline

Activity: 648
Merit: 500


View Profile
May 25, 2013, 06:45:32 AM
 #984

Seems reasonable. I'd question the cost of milling out so much metal but maybe with CNC it's pretty cheap to do that. Wouldn't milling a small 0.5mm raise and deeper holes at the connector pins be less CNC time? I don't know about that. One thing - there is 3 other small pads under the buck regs. They should have raised pads to match but I can't tell if that's already accounted for.

I can't say if this is the best method. It could be fine or having more contact with the board mask overall may still provide quite a bit more heat transfer. Even though the board is not a great conductor there is a lot of surface area that is lost by using raised pads. Before committing to a large purchase I'd suggest testing both ways to see the temperature difference.



I think you may be right. Back to the drawing board.

ASIC miners available for purchase

Those who serve best, profit most.
BkkCoins (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
May 25, 2013, 07:01:11 AM
 #985

I think you may be right. Back to the drawing board.
I wouldn't scrap it entirely, as ideally there does need to a small rise where the pads are even just to offset the mask thickness for best contact. Though judging by the Avalon photos just smearing some goop in there is enough. (!) Have you had some quotes on CNC costs for different options?

In general I'm in favour of testing results before putting one choice up on github and having people take it as "the design".

Bicknellski
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000



View Profile
May 25, 2013, 07:04:54 AM
 #986

I think you may be right. Back to the drawing board.
I wouldn't scrap it entirely, as ideally there does need to a small rise where the pads are even just to offset the mask thickness for best contact. Though judging by the Avalon photos just smearing some goop in there is enough. (!) Have you had some quotes on CNC costs for different options?

In general I'm in favour of testing results before putting one choice up on github and having people take it as "the design".

These are the heat sinks I have ordered and will be shipping to Bangkok. Just want to put that up so people can see what heat sinks will be tried at least initially.

Quote
Heat Sinks Being Tested / Menjadi Diuji:

#1


Length 90.00 mm
Width 90.00 mm
Height 15.00 mm

#2


Length 100.00 mm
Width 100.00 mm
Height 18.00 mm

#3


Length 100.00 mm
Width 110.00 mm
Height 25.00 mm

#4


Length 100.00 mm
Width 97.00 mm
Height 32.00 mm

Dogie trust abuse, spam, bullying, conspiracy posts & insults to forum members. Ask the mods or admins to move Dogie's spam or off topic stalking posts to the link above.
BkkCoins (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
May 25, 2013, 07:25:10 AM
 #987

Awesome. I really like that you've got several heights coming.

KS
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


View Profile
May 25, 2013, 07:27:56 AM
 #988

I think you may be right. Back to the drawing board.
I wouldn't scrap it entirely, as ideally there does need to a small rise where the pads are even just to offset the mask thickness for best contact. Though judging by the Avalon photos just smearing some goop in there is enough. (!) Have you had some quotes on CNC costs for different options?

In general I'm in favour of testing results before putting one choice up on github and having people take it as "the design".

These are the heat sinks I have ordered and will be shipping to Bangkok. Just want to put that up so people can see what heat sinks will be tried at least initially.

Quote
Heat Sinks Being Tested / Menjadi Diuji:

#1


Length 90.00 mm
Width 90.00 mm
Height 15.00 mm

#2


Length 100.00 mm
Width 100.00 mm
Height 18.00 mm

#3


Length 100.00 mm
Width 110.00 mm
Height 25.00 mm

#4


Length 100.00 mm
Width 97.00 mm
Height 32.00 mm

Could you get one of these as well for testing?

http://www.befr.ebay.be/itm/10CM-100x76x21mm-Aluminum-Heat-Sink-for-4-6pcs-3W-LED-Power-Transistor-Cooling-/390557019421?pt=LH_DefaultDomain_0&hash=item5aef032d1d#shId

100x76 / 21mm height @ 3 USD

I'd be interested to know whether those 2 mm missing on the sides are really important...
Bicknellski
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000



View Profile
May 25, 2013, 07:30:54 AM
 #989

Awesome. I really like that you've got several heights coming.

I though it would be interesting to test a range of heights... that way if they all work people can pick anything they like really in that range.

I think really after seeing that fubar gloop job on the Avalon modules we are going to have little or no problems with heat. The concern will be tenting the vias I think making sure the solder doesn't wick. I think overclocking boards with a big assed fan slapped on top pointing down on the heat sink is going to be a winner and ultimately the cheapest solution.

Dogie trust abuse, spam, bullying, conspiracy posts & insults to forum members. Ask the mods or admins to move Dogie's spam or off topic stalking posts to the link above.
Bicknellski
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000



View Profile
May 25, 2013, 07:32:51 AM
 #990

Could you get one of these as well for testing?

http://www.befr.ebay.be/itm/10CM-100x76x21mm-Aluminum-Heat-Sink-for-4-6pcs-3W-LED-Power-Transistor-Cooling-/390557019421?pt=LH_DefaultDomain_0&hash=item5aef032d1d#shId

100x76 / 21mm height @ 3 USD

I'd be interested to know whether those 2 mm missing on the sides are really important...

Not 80mm? Think that is too small. Can you find something that is at least 90 x 80 and send it to BKKCoins? If he is ok with that?

My wife is going to shoot me if I keep shipping stuff to Thailand on the credit card.  Grin

Dogie trust abuse, spam, bullying, conspiracy posts & insults to forum members. Ask the mods or admins to move Dogie's spam or off topic stalking posts to the link above.
steamboat
Hero Member
*****
Offline Offline

Activity: 648
Merit: 500


View Profile
May 25, 2013, 07:37:59 AM
 #991

I think you may be right. Back to the drawing board.
I wouldn't scrap it entirely, as ideally there does need to a small rise where the pads are even just to offset the mask thickness for best contact. Though judging by the Avalon photos just smearing some goop in there is enough. (!) Have you had some quotes on CNC costs for different options?

In general I'm in favour of testing results before putting one choice up on github and having people take it as "the design".

Yeah, I've been mulling that over. The SM should only be a few thousandths, so thermal compound may be enough. I don't know if trying to mill to those tolerances would be worth the cost. The only two areas that are of concern are the pcie and USB. It may be easier to just cut those sections out and mount directly to the board w/ compound used to even out the board. As far as the git goes, if they can't read the warning label, they shouldn't be using the product Wink

ASIC miners available for purchase

Those who serve best, profit most.
BkkCoins (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
May 25, 2013, 07:39:40 AM
 #992

Could you get one of these as well for testing?

http://www.befr.ebay.be/itm/10CM-100x76x21mm-Aluminum-Heat-Sink-for-4-6pcs-3W-LED-Power-Transistor-Cooling-/390557019421?pt=LH_DefaultDomain_0&hash=item5aef032d1d#shId

100x76 / 21mm height @ 3 USD

I'd be interested to know whether those 2 mm missing on the sides are really important...

Not 80mm? Think that is too small. Can you find something that is at least 90 x 80 and send it to BKKCoins? If he is ok with that?

My wife is going to shoot me if I keep shipping stuff to Thailand on the credit card.  Grin
I'll order a couple myself on ebay, just to see how they work. I'd like to know as well how effective it is when 2mm short, and they're very cheap. I'd like to test cutting it down the middle and placing one on each side, with a gap for the connector and this is a cheap one to try that on - so will get 2.

BkkCoins (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
May 25, 2013, 07:51:11 AM
 #993

Yeah, I've been mulling that over. The SM should only be a few thousandths, so thermal compound may be enough. I don't know if trying to mill to those tolerances would be worth the cost. The only two areas that are of concern are the pcie and USB. It may be easier to just cut those sections out and mount directly to the board w/ compound used to even out the board. As far as the git goes, if they can't read the warning label, they shouldn't be using the product Wink
The USB connector has no metal thru-hole pins, just a plastic stress relief. I just double-checked the board to make sure those two are non-plated, and they're only 1.1mm so won't extend past the board bottom.

I thought someone mentioned the Avalon had resin filled vias - I'll have to test that as preventing wicking thru the holes would be good. How well that fits into an assembly I don't know. I guess they would handle it like another mask layer.

BkkCoins (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
May 25, 2013, 08:01:32 AM
 #994

My wife is going to shoot me if I keep shipping stuff to Thailand on the credit card.  Grin
I think you can take a rest in that dept. I hope you kept track of which are which and from where.
I better label them when they come in.

Bicknellski
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000



View Profile
May 25, 2013, 08:47:51 AM
 #995

My wife is going to shoot me if I keep shipping stuff to Thailand on the credit card.  Grin
I think you can take a rest in that dept. I hope you kept track of which are which and from where.
I better label them when they come in.

Ya I have both fabricators on speed dial from China.

Thing is to be honest whichever one looks best I am going to basically get a drawing made to the specs and have it made in bulk here in Indonesia as we have quite a few Aluminum foundry / extruder companies right in Jakarta so I am pretty sure it is cheaper just ordering them in bulk here. Avoid the shipping weight and save on bulk. Be creative and I trust you will find an elegant solution, those heat sinks do not have to be shipped back to me obviously, so even if you have to cut them and Frakenstein something for testing please go for it. Also love the idea of longer heat sinks and use them as support when racking / klegoing.

Dogie trust abuse, spam, bullying, conspiracy posts & insults to forum members. Ask the mods or admins to move Dogie's spam or off topic stalking posts to the link above.
marto74
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile WWW
May 25, 2013, 08:57:37 AM
 #996

Could you get one of these as well for testing?

http://www.befr.ebay.be/itm/10CM-100x76x21mm-Aluminum-Heat-Sink-for-4-6pcs-3W-LED-Power-Transistor-Cooling-/390557019421?pt=LH_DefaultDomain_0&hash=item5aef032d1d#shId

100x76 / 21mm height @ 3 USD

I'd be interested to know whether those 2 mm missing on the sides are really important...

Not 80mm? Think that is too small. Can you find something that is at least 90 x 80 and send it to BKKCoins? If he is ok with that?

My wife is going to shoot me if I keep shipping stuff to Thailand on the credit card.  Grin
I'll order a couple myself on ebay, just to see how they work. I'd like to know as well how effective it is when 2mm short, and they're very cheap. I'd like to test cutting it down the middle and placing one on each side, with a gap for the connector and this is a cheap one to try that on - so will get 2.

I can produce 1 of my design and send it to you for testin.
I'll put a few in production in monday .
I will be able to dispatch Wednesday
PM me delivery address.

http://technobit.eu
tips : 12DNdacCtUZ99qcP74FwchaCPzeDL9Voff
kano
Legendary
*
Offline Offline

Activity: 4634
Merit: 1851


Linux since 1997 RedHat 4


View Profile
May 25, 2013, 09:13:26 AM
 #997

...
This is the scheme I'm coding right now. My intention is to keep it simple, both to understand and for the PIC to work with, but also flexible enough that a long rigid data structure like the Avalon uses isn't required. I am interested in feedback before I get too far along, especially from ckolivas or kano who have had to code several drivers and know where difficulties may lie. My plan is to write the driver by adapting from the Avalon one where needed, but perhaps there is a better/simpler driver model for this cmd based architecture.
The scheme above sounds good since it is an actual (simple) protocol, not simply send data and receive answers.
I'd risk making the comment (but it is true) that of all the working devices so far, the BFL ASIC has the best protocol and MCU design.
BFL polling for an answer sux however, but since it has a 20 length output queue, there is no need to poll much more often than a reply is expected
(it also has a 20 length input queue)

Anyway,
The ability to send status commands and get replies while mining is important. I can't tell from your comments if it can or not.
Having to halt/finish mining to send a status request or get a status reply e.g. is very inadvisable.

The Avalon also does something right out of left field ...
It mines the work it is given continuously until more work is given - so if it reaches 0xffffffff it will start from 0x00000000 again and repeat the work.
Hopefully that ... weird ... idea hasn't been incorporated.

Having an input queue (which is what yours sounds like) is of course the best thing to avoid lost processing power (latency) between work items.
Hopefully the design is to allow adding items to the queue when it isn't full - so if it is a 1 length pre-process queue, we'd add 1 item each time a work item completes and thus there would always be work waiting for when a work item completes.
A bigger queue is way better and since on windows it's REALLY unreliable timing stuff, the bigger the queue the better.

Adding an ID (a few bytes) would be pretty much necessary if there is an input queue - where the miner could pass in an ID of it's choice and that would be returned with the nonces.
i.e. the miner would simply send a unique ID it could use on reply to identify the work source - an input queue with an ID solves any work source confusion

For LP we need to be able to abort all work and start new work (and even better if it can be done in a single command), but knowing how much work was already done at this point is necessary since at this point any incomplete work that has not provided any answers is indeed valid work done that counts towards the device performance.
It's also nice to be able to stop all work if the e.g. a temperature report says something cgminer or the user has decided is too high
Handling overheat should have 2 levels:
1) The device has a critical level that aborts work
2) The miner has an optional lower level it can use commands to do things like increase the fan or reduce the clock or even stop mining to wait for it to cool down

Make sure there is a clear way to identify the version of the protocol used
And PLEASE put a name in iManufacturer and iProduct and a unique serial number for each device in iSerial
I will be using iSerial (or some other unique id if it exists) to handle reanimating ZOMBIE devices soon in the code
(e.g. when a hotplug is detected for a device that was lost and it matches the exact same device by e.g. iSerial, it will make sense to reanimate the ZOMBIE device rather than creating a new one like it does at the moment)

Don't adapt the Avalon driver.
I don't want more serial-USB code in cgminer.
Adapt the driver-bflsc.c
No doubt once it's done I'll just rewrite it, but use that as a basis anyway for how to use usbutils.c
(there are 3 in there already modminer, bitforce and bflsc, and I'm doing icarus right now to complete all the non avalon USB drivers)
If you do it correctly, hotplug is enabled, device identification is simple (and easy to avoid overlap for devices with the same USB chip by checking iManufacturer and iProduct), and device failure is handled by usbutils.c automatically (among other things like very helpful development statistics automatically stored for devices)
Of course usbutils.c will be enhanced over time as required and the aim is for those enhancement to cover all devices automatically.

I can ramble more, but that's just repeating stuff I've spoken to the ASIC vendors about before that I've written down and you've probably already dealt with anyway.
If you want I can PM a bunch of old comments on the subject.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
nekonos
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
May 25, 2013, 09:57:12 AM
 #998

Hi all
Heat power of chips is 1'7-1'8W each one?

Next week I will do some test with 2W simulation with different profiles.
BkkCoins (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
May 25, 2013, 10:52:32 AM
 #999

The scheme above sounds good since it is an actual (simple) protocol, not simply send data and receive answers.
I'd risk making the comment (but it is true) that of all the working devices so far, the BFL ASIC has the best protocol and MCU design.
BFL polling for an answer sux however, but since it has a 20 length output queue, there is no need to poll much more often than a reply is expected
(it also has a 20 length input queue)
Thank you for all your comments here. Very helpful. I would appreciate a PM with your past comments as I have not been following your discussions with other ASIC devs. If I can at least scan it may be able to avoid something that gives you headaches later.

Anyway,
The ability to send status commands and get replies while mining is important. I can't tell from your comments if it can or not.
Having to halt/finish mining to send a status request or get a status reply e.g. is very inadvisable.
Yes. It can receive cmds at any time. The only time it may not respond immediately is while pushing the work data sequence to the ASIC since this must be done with software. The USB serial engine should be able to accept cmds from the host even during this period as it has dual-port buffer memory, but the PIC may not reply until it's pushed the work out, since I'll disable interrupts during the push sequence.

The Avalon also does something right out of left field ...
It mines the work it is given continuously until more work is given - so if it reaches 0xffffffff it will start from 0x00000000 again and repeat the work.
Hopefully that ... weird ... idea hasn't been incorporated.
I know, it's a zombie. I plan to push work and then set a hardware timer interrupt (based on clk rate and chip count table) that will allow me to know when I can push the next work with minimal lag. I'm unsure yet how much of a queue I can have as some RAM will be used for other purposes but there is 1K and I expect some chunk of that will be available. If midstate+data is 48 bytes then I'm guessing now at least 4, maybe 8 work items possibly.

Adding an ID (a few bytes) would be pretty much necessary if there is an input queue - where the miner could pass in an ID of it's choice and that would be returned with the nonces.
i.e. the miner would simply send a unique ID it could use on reply to identify the work source - an input queue with an ID solves any work source confusion
I thought of this but hadn't coded it yet. Probably right after the address digits a unique ID byte that is just some work array index on the miner. Any nonce returned would also have that byte. My plan was for any nonce result to be immediately pushed to the host. The master PIC would use polling to detect slave nonce results but it should catch them quickly as it won't have much to do once work is pushed to the ASIC. Even PWM fan control and fan speed measurement is mostly delegated to hardware functions.

For LP we need to be able to abort all work and start new work (and even better if it can be done in a single command), but knowing how much work was already done at this point is necessary since at this point any incomplete work that has not provided any answers is indeed valid work done that counts towards the device performance.
How about an Abort cmd, 'A' which replies with amount of partial hashes done (which would be based off timer tick counts since the ASIC can't tell me anything). So if new work is prefixed with A, eg. AW002<id><midstate><data> then the queue is cleared, partial count returned, and new work immediately pushed. If useful multiple work tasks could be sent at once to fill the queue. I could just check the length and process them in sequence. I'll leave that for later refinement.

It's also nice to be able to stop all work if the e.g. a temperature report says something cgminer or the user has decided is too high
Handling overheat should have 2 levels:
1) The device has a critical level that aborts work
2) The miner has an optional lower level it can use commands to do things like increase the fan or reduce the clock or even stop mining to wait for it to cool down
I was planning that the cfg C cmd would allow setting target temp and the PIC will use tach reading and pwm fan control to keep the device below the target. There are two temperature sensors - one internal to the PIC and one a thermistor near an ASIC, that can be read to monitor this and a critical temp reading would directly disable the hash clock, and set status values the host can query. This can be refined easily later.

Make sure there is a clear way to identify the version of the protocol used
And PLEASE put a name in iManufacturer and iProduct and a unique serial number for each device in iSerial
I will be using iSerial (or some other unique id if it exists) to handle reanimating ZOMBIE devices soon in the code
(e.g. when a hotplug is detected for a device that was lost and it matches the exact same device by e.g. iSerial, it will make sense to reanimate the ZOMBIE device rather than creating a new one like it does at the moment)
Will look into setting those values in the Microchip USB stack.
Each board will have a unique serial# embedded in the firmware which is also used internally for slave detect arbitration and ID assignment when detecting how many boards are chained off the master. Good idea on protocol version and I'll add that to the status query reply. The status reply will also contain a slave board count, which would be the max ID for slaves. But if useful it could also reply with an array of serial#s and chip counts per board. I wouldn't store them in the master PIC as it's not very useful and uses RAM, but if useful for the host miner (user curiosity/diagnostics) I could easily query each ID on I2C bus and then relay back all the serial#s and chip counts in sequence.

Adapt the driver-bflsc.c
Will look at that and use it as guide.
This is exactly what I needed to know to get started in the right direction. Thank you.

BkkCoins (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
May 25, 2013, 10:55:58 AM
 #1000

Hi all
Heat power of chips is 1'7-1'8W each one?

Next week I will do some test with 2W simulation with different profiles.
That's about right. I would use 2W as safer value.

Avalon reported power as 6.6W/GH @ 282MH/s that's 1.86 each but many people will want to overclock to 300 and it should be considered baseline for testing. I don't know if it's actually linear but,

300/282*1.86 = 1.98W

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ... 181 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!