-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running ARTIQ Sayma hardware at WUT #468
Comments
Joe, we're on it. Don't worry. This doesn't need an issue, I'll take care of it. |
I know you'll get it done @hartytp. I'd like to make sure that the Q&A that goes along with bootstrapping @marmeladapk and @gkasprow understanding of how to install ARTIQ is visible. This will help M-Labs understand where the hangups are in installing the system, gaps in documentation. |
@marmeladapk Were you able to build .bit for the Sayma? |
Yeah, although I thought that @hartytp offered to do this. |
Will do once i get remote access to a pc |
Soo, I may have jumped the gun after @jbqubit message and installed it myself. Steps I did:
I didn't flash the board yet, I may do it on Monday if @gkasprow won't use it. @hartytp @jordens Is this, more or less, what I should do to run Artiq and to be able to synthesize latest gateware? Notes about installation process - I think it's quite easy, however I would save some time if I were to update conda right away at the beginning - perhaps including Another note: in this part of the manual I think that points 6 to 9 shouldn't link to "Installing ARTIQ from source" but just relevant parts could be copy-pasted from there. I wasn't sure, for example, if I had to export path to clang or not. |
|
@jordens I didn't specify |
@marmeladapk not a bug, yes. just a hint. you can get the usual help on these command-line tools by running them with |
@marmeladapk Great! Good for you. In the long run, it's much better if you can do this yourselves. |
Should I flash sayma_amc_drtio_master and sayma_rtm to work with Artiq? |
@jordens sayma_rtm target does not have --gateware-toolchain-path, should I file a bug? |
@marmeladapk The You can file an issue for the missing |
@marmeladapk Or you could just give it a try and add an |
@marmeladapk Could you try running Sayma RTM with an external 1.2GHz clock, please? Configuration I'm using is:
My finding is that the DACs all produce a sawtooth briefly after the firmware boots up, which then cuts out presumably due to a loss of the JSED link. If that happens for you, can you check the DAC power supplies etc for glitches and do some general sanity checking to see if there are any obvious hardware reasons for this error (otherwise, it is a M-Labs software/gateware issue). Thanks! |
Also, @marmeladapk @gkasprow IIRC, you previously saw RF out of Sayma using a bitstream that @enjoy-digital sent you. Please can you remind me what your configuration was, and whether you saw any issues. e.g. did you get nice RF out and did the JSED links stay up? If so, this is less likely to be a hardware issue... |
I used Florent binaries to test all Saymas working with 1GHz external clock applied to the SMP connectors. |
@hartytp @gkasprow: from what i remember, i was able to also get the JESD link stable after we found that one calibration pin was floating on the AD9154 and fixed it. But this was with the designs from my sayma_test repository. I'm at M-Labs office tomorrow and will test if JESD is also stable with ARTIQ. |
I applied this fix to all boards prior shipment |
That's why the manual says to update conda (cf m-labs/artiq#785).
It wouldn't hurt if the manual indicated that this path is commonly needed. Just to grease the skids.
That's great progress!
artiq_flash seems to handle flashing sayma_rtm when I checked last week.
@jordens Please let @marmeladapk focus on getting up to speed with ARTIQ on Sayma and test the hardware. Learning to edit ARTIQ source and push patches is desirable but maybe in a couple weeks. :)
@enjoy-digital Glad that you'll be working next to @sbourdeauducq in HK. :) How long will your visit last? |
You mean the clock mux? I didn't see any issues with the clock, which was still present after the JESD link went down. While, it's possible that there was a brief glitch that I didn't catch, I don't think that was the issue in my case. |
@hartytp some boards had this issue, some didn't |
Okay. Well, I'm not sure why my JESD links lost lock. Will be interesting to hear what @enjoy-digital finds in HK... |
@marmeladapk How's this going? |
@sbourdeauducq Where is this script located? ed: OK. |
|
@marmeladapk Would be best to just retrieve a RTM from Creotech/Techonosystem so you can duplicate the AMC+RTM that the rest of us are using. |
@marmeladapk I'll post you the second RTM that I have on Monday (the one with the 3V3 regulator issue). |
I don't know what's the scope of @wizath 's work, however when he finishes then I could work on Sayma in MTCA crate. |
|
I will check what is easier to do. Guys at CTI also use RTM and AMC intensively... |
@marmeladapk Just do something like this (not tested so you may have to finish it yourself):
If your JTAG breaks completely with the RTM disconnected, you need a newer MMC firmware with the bug fixed. |
@sbourdeauducq Thanks I missed pld # in load_proxy. Yesterday I tried all gatewares generated by your script, but it didn't help, still get preamble errors. Also seems that we have recreated 1,8 V bug overnight. |
Did you edit the script so it changes the RX, not TX phase? As it is, it does nothing to the RX.
Good. So at least we can make some progress with that bug despite inane EU customs bureaucrats (which are one of the reasons I moved to Hong Kong). |
@sbourdeauducq EU customs are nothing compared to our post service ;) That's where I expect the main delay will come from.
No, I missed your comment how to do it. I'll try that today. |
Didn't know EMS went through the regular post when sending to Poland. I'll avoid it next time. Is DHL working correctly?
OK, then it is expected that you saw no change in the preamble errors. |
You emigrated in search of laxer customs regulations? |
That's one of many reasons, yes; wasting 2+ hours per package (which is also typically delayed for days) containing something as basic as a few KF valves or a FPGA development kit isn't fun. In Hong Kong, this type of package is just waved through. Anyway, back to the point. |
I had some time to play with Kasli and Artiq. (notes for me to trace what I have done)
Changed device address in artiq/examples/kasli_opticlock/device_db.py
Played a bit with artiq_run. Will continue tommorow, after I test new batch of Kaslis. Eventually I want to be able to test most functionalities with Artiq and use Vivado only for IBERT and platform cable. I'll start with writing and reading from DIOs. |
Well done! |
@marmeladapk Nice! You should be able to use this to test Zotino v1.1 when it arrives. Might be quicker than the dev kit. |
https://github.com/marmeladapk/kasli-i2c With multiple devices connected (in our case Sayma and Kasli):
With some simple code and kasli-i2c I tested RJ45 loopback, however I had some problems with I2C (registers in RJ45 DIO seem to set only after few tries). I didn't have those problems on my windows machine, I'll check it on Monday.
|
@jordens Did you test AD9910 on Kasli? Currently with |
@marmeladapk I did and it worked fine. https://github.com/m-labs/artiq/tree/master/artiq/examples/kasli_sysu |
@sbourdeauducq
edit: My bad, on clean repo it compiles. |
I added I2C device to coredevice/i2c.py (practically a copy-pasted version of PCA9548 driver):
Now with
I'm able to set direction on RJ45 DIO so I no longer need my hacky bitbang-I2C. |
@marmeladapk Yes. Urukul-AD9910/v1.0 on Kasli/v1.0 has been tested at 100, 125, and 150 MHz refclk. Check Urukul clock mux setting, refclk power, vco range, i_cp. And maybe simulate the AD9910 PLL loop filter with the parameters you are using. |
And check the DIP switch settings. |
@marmeladapk The PCF8574 driver looks good. It would be great if you could add that to the API documentation and submit a pull request. |
Closing this as WUT have ARTIQ up and running (well done and thanks again @marmeladapk). PCF8574 driver should have a separate issue if needed.... |
From #358
@hartytp said
@gkasprow said
@marmeladapk, @hartytp please do installation discussion in this Issue (vs eg email).
The text was updated successfully, but these errors were encountered: