sinara-hw / Fastino

Fast 32-channel, 3MS/s per channel, 16bit DAC EEM card compatible with Zotino
11 stars 2 forks source link

FPGA clocking #19

Closed jordens closed 4 years ago

jordens commented 5 years ago
gkasprow commented 4 years ago

@jordens do you need CBSEL lines? I have to use them if we want to connect the clock to GBIN2 or 3 Cannot we use GBIN4 or 5 ?

gkasprow commented 4 years ago

@jordens is 25MHz clock fine? Maybe other frequency would be better?

jordens commented 4 years ago

There is a pll in the gbin4/5 tile that's blocked if these are used as inputs (unless the inputs go to the pll). Clock frequency doesn't matter. You can choose whatever is convenient. This will be clocked from eem.

jordens commented 4 years ago

I'll check cbsel

jordens commented 4 years ago

Correction. GBIN5 (IOB_81) and IOB_80 can not be used as inputs if the PLL is used. Same for GBIN0 (IOT_198) and IOT_199. So you can connect the 25 MHz clock to any of GBIN4/3/2/1. (Same as https://github.com/sinara-hw/Banker/issues/7)

The CBSEL lines might be nice for using different bitstreams. Keep them if you can.

gkasprow commented 4 years ago

@jordens With GBIN4 as the clock input, I don't need CBSEL lines and can leave them for bank select feature. This is a proposed pin assignment obraz obraz

And here is the pin table that I merged with PIO locations iCE40PinoutHX8K.xlsx

jordens commented 4 years ago

But you used GBIN5 for the clock.

jordens commented 4 years ago
gkasprow commented 4 years ago

I'm not sure if I can route it without splitting the channel 13

gkasprow commented 4 years ago

True, I switched the clock to GBIN4. @jordens here is an updated pin assignment. Can you make sure that all compiles so I would finish routing? Fastino_FPGA_signals.xlsx

jordens commented 4 years ago

your upload didn't work.

gkasprow commented 4 years ago

it should work now.

jordens commented 4 years ago

works fine with the prototype gateware.

gkasprow commented 4 years ago

Cool!