sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
<hartytp> zotino seems to work
<hartytp> well, assuming it doesn't spontaneously die again...
<hartytp> will leave on over the weekend
<hartytp> I'm planning to finish up my ARTIQ driver and submit a PR on Monday
<hartytp> A question first: would you prefer me to create a Zotino class that derives from AD5360? Or, shall I create a new Zotino class and copy-pase from AD5360?
<hartytp> I slightly prefer to create a new class, as there are some minor nits I have with the old class. (Names aren't consistent with other EEMs, timings are generally very conservative, they overall layout isn't ideal for Zotino etc)
<hartytp> but, am happy to take your steer
<hartytp> (I slightly prefer to create a new class and copy/pase rather than inheriting the old code)
hartytp has quit [Quit: Page closed]
<GitHub-m-labs> [artiq] hartytp opened pull request #963: Add Zotino and Sampler functions to Kasli. Add Zotino to Kasli EEM 7 … (master...kasli_zotino_sampler) https://github.com/m-labs/artiq/pull/963
sb0 has quit [Quit: Leaving]
sb000 has joined #m-labs
<sb000> hartytp, the old class should be fixed. there is enough duplication/inconsistencies in artiq already (sawg vs. wavesynth, ad9914 vs. urukul). we need to clean those up, not introduce more similar issues
<sb000> if there is a zotino class, it should just be a thin wrapper for leds plus the ad driver
sb000 has quit [Ping timeout: 260 seconds]
rohitksingh has joined #m-labs
rohitksingh has quit [Quit: Leaving.]
rohitksingh has joined #m-labs
rohitksingh has quit [Quit: Leaving.]
Ishan_Bansal_ has joined #m-labs
Ishan_Bansal has quit [Read error: Connection reset by peer]
Ishan_Bansal_ is now known as Ishan_Bansal
_whitelogger has joined #m-labs
mumptai has joined #m-labs
Hartytp has joined #m-labs
<Hartytp> sb0: I'm fine with that. Comments...
<Hartytp> 1. I want to rename a few functions which will break existing user cide
<Hartytp> Code
<Hartytp> I don't want to deal with the fallout
<Hartytp> 2. Zotino is a pcb with a single chip and well defined si properties. The ad5360 aims to support several chips and pcbs.
<Hartytp> 3. I want to tweak timings to go as fast as possible on Zotino (e.g. no 1us delay before ldac)
<Hartytp> That may break some setups with bad si
<Hartytp> 4. I want to add si functions. That's not possible with the ad5360 as the conversion is different for the different chips
<Hartytp> I can put the si into Zotino but then I need to track gain/offset settings over fund calls.
<Hartytp> Given all that and how simple the dac driver is, starting afresh with a Zotino class seems cleaner
<Hartytp> Well I can have the ad5360 store the gain and offset for each channel but not use that info
<Hartytp> And add the si funcs to Zotino.
<Hartytp> Anyway, your call. I want to wrap this up on Mon so let me know how you want it done
Hartytp has quit [Ping timeout: 260 seconds]
<GitHub-m-labs> [artiq] jordens commented on commit c4fa44b: EEM5, EEM4 https://github.com/m-labs/artiq/commit/c4fa44bc62bfe246f5a2270cf9840f547713d9b0#commitcomment-28144857
<GitHub-m-labs> [artiq] jordens commented on commit c4fa44b: Why that much ififo depth? https://github.com/m-labs/artiq/commit/c4fa44bc62bfe246f5a2270cf9840f547713d9b0#commitcomment-28144859
sb0 has joined #m-labs
<sb0> 1. if it's just renaming functions, that's pretty easy for users to deal with. just add an entry in RELEASE_NOTES saying that X should be renamed to X in their code.
<sb0> *to Y
<sb0> 2. yes, so ad5360 should also aim to support zotino
<sb0> 3. is it hard to parameterize the relevant ad5360 timings?
<sb0> 4. I think those si functions would naturally fit into the wrapper class
<sb0> the ad5326 class shouldn't store anything, but the wrapper class (which may use inheritance) can
<sb0> I can write this if you want, but the zotino I have burned, so I cannot test
Hartytp has joined #m-labs
<Hartytp> sb0: if you want to write then go for it but I want this asap so happy to write myself if that's quicker
<Hartytp> Happy to test here either way
<Hartytp> Timings should be close to dac datasheet values to optimize t
<Hartytp> Throughput
<sb0> Hartytp, I'm not too sure about what you want (especially the renaming functions part) so maybe you can write a draft and I can complete/clean it up/integrate it
<Hartytp> Bot much just make it more like novo
<Hartytp> E.g. functions in mu should have suffix
<sb0> ah, yes
<sb0> yes, for this kind of fix this should just be done, with an entry in RELEASE_NOTES
<Hartytp> If you want delay params for boards with si issues I'm fine with that but the interface starts to get a bit cluttered for my liking
<sb0> the general policy for breaking changes is it's OK to introduce them between major releases (X.0 -> X+1.0) but they should be listed in RELEASE_NOTES
<Hartytp> Similarly if the wrapper has to overload all setters to store gains and offset then we have a lot of extra code
<Hartytp> The dac code is basically trivial so id personally prefer to replicate it if that
<Hartytp> Gives a cleaner outcome
<Hartytp> I don't feel strongly
<Hartytp> Will push an outline to my fork tomorrow
<Hartytp> rjo: thanks for review apologies for typos will check more carefully next time before pushing
<Hartytp> Ififo should be ofifo
<Hartytp> Don't care about the depth just copied from elsewhere feel free to change
<Hartytp> Will fix typos tomorrow
Hartytp has quit [Ping timeout: 260 seconds]
Gurty has quit [Ping timeout: 246 seconds]
Gurty has joined #m-labs
Gurty has joined #m-labs
Gurty has quit [Changing host]
Hartytp has joined #m-labs
<Hartytp> sbo: let me write a first draft of Zotino driver; I think I know what I want and it won't take long. Once that's done you can make any changes you want to it while I'm testing the hw
<Hartytp> In the meantime can you give _florent_ a hand with the sdram? I still worry that with one person on this part time it has the potential to drag on
<Hartytp> And keep causing us all a headache
Hartytp has quit [Client Quit]
ncl is now known as __ncl_t
__ncl_t is now known as __unsigned_ncl
__unsigned_ncl is now known as ncl
siruf_ has joined #m-labs
siruf has quit [Read error: Connection reset by peer]
siruf_ is now known as siruf
Gurty has quit [Ping timeout: 246 seconds]
Gurty has joined #m-labs
mumptai has quit [Remote host closed the connection]