Hi,

On Tue, Jul 10, 2012 at 12:26 PM, Harald Welte <laforge@gnumonks.org> wrote:
Hi Christian,

On Tue, Jul 10, 2012 at 07:04:35PM +0200, Christian Daniel -- maintech GmbH wrote:
> We violate the 100mA limit by a small amount. FPGA and E4K can be
> switched off and the ADC doesn't consume much when no clock is
> applied. I don't see a problem here - at least after we fixed the
> power sequence to stop it from using the full 400mA directly on power
> up. Also a diode for external power supply is on the board. But yes -
> it will not be USB certified. But so far this is not a real-world problem.

Actually, now that you're doing a re-design for the SSC -> EBI change,
it might be an idea to make the oscillator power supply switchable and
controlled by a GPIO from the SAM3U or FPGA.  At that point, there's no
problem booting at < 100mA.


The Si570 has an OE pin, but even in tri-state mode it still consumes ~60mA. So, I second Harald: it makes sense to have an option to make the oscillator power supply switchable and to keep the overall consumption (including the RF IC, ADC, FPGA, TCXO and MCU) below 100mA until higher currents are negotiated. Connect the switch input to a SAM3U I/O rather than one of the FPGA.

By the way, the FPGA seems to have only one clock input, 'CLKPO'. Is this the case?

> 2. The Lattice LatticeXP2 FPGA is available in the same package but
> in larger size at almost identical price. Why did you pick the
> smallest available FPGA, the LFXP-5E ($16) instead of the LFXP-8E
> ($20)?

Because it was on stock and is big enough for the task at hand.

It can never be too big for a prototype. :) The two models ought to be pin-compatible, so the upgrade might be worth it if the LFXP-8E is available.


> 5. My understanding is that you configure the FPGA using the JTAG
> lines in bit-bang mode through SAM3U GPIOs. Why don't you use the
> sysConfig port of the Lattice FPGA? It's faster, easier to
> implement with the SAM3U SPI peripheral (and it's also a feature I
> haven't seen with other FPGAs). See Lattice TN1141
> <http://www.latticesemi.com/documents/TN1141.pdf>.

Good point. Well - the current method works well and is fast (about 30
seconds to flash via USB). No need to change it again... My guess is,
that it won't get much faster since the bottleneck is USB and flash
write time. Perhaps we'll have to change it when we switch to EBI to
free some SAM3U pins.

The other advantage of using the sysConfig Port is that you can save the JTAG lines for a pin header. If the pin header is compatible with the Lattice programmer, you might be able to use the Lattice's ChipScope equivalent for debugging the FPGA.

Cheers,

Sandor