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
d_n|a has quit [Ping timeout: 240 seconds]
_whitelogger has joined #m-labs
<mithro> Hey, what is whitequark's real name?
<reportingsjr> mithro: odd question :P
<sb0> I want to make a constant current source that can handle fast voltage changes at its output. is it a good idea to use a Wilson circuit with an inductor in series with the output to compensate for the Miller effect? why do I never see such an inductor in typical schematics?
rohitksingh has joined #m-labs
<mithro> is there a way to get Xst to generate a kind of usage report for all the blocks and stuff?
<sb0> it prints it by default
rohitksingh has quit [Quit: Leaving.]
rohitksingh has joined #m-labs
_whitelogger has joined #m-labs
rohitksingh has quit [Ping timeout: 240 seconds]
rohitksingh has joined #m-labs
rohitksingh1 has joined #m-labs
rohitksingh has quit [Ping timeout: 258 seconds]
<whitequark> mithro: "whitequark"
<whitequark> if you want my name on government ID the answer is different but I don't see why you need that
d_n|a has joined #m-labs
<cr1901_modern> sb0: What's wrong w/ a BJT and a zener on the emitter?
<cr1901_modern> erm, not the emitter, you know what I mean
<sb0> fast voltage changes on the collector couple into the base via the CB parasitic capacitance
<sb0> also, it's unstable with temperature
<sb0> matched pairs on the same chip and a current mirror configuration is more precise
<cr1901_modern> fair. was just wondering
<mithro> whitequark: was just interested, perfectly fine if you don't want to share
<whitequark> mithro: generally all my work is attributed to "whitequark" so that's far more useful
d_n|a has quit [Ping timeout: 240 seconds]
<whitequark> sb0: hm, I wonder if we have the same problem with the floating point modulo
<sb0> whitequark, that's easily tested and fixed when relevant by copying the numba code, no?
<sb0> why does circuits.io need my date of birth and country of residence to create a pcb layout?
<sb0> sigh
<whitequark> yes, just writing it down that I need to test it, really
<whitequark> oh geez yeah the fmod code is also a terrible mess
<whitequark> I am just going to make it an intrinsic in the Rust runtime
<whitequark> generating that much code every time is pointless
<sb0> doesn't this code generation that you dislike enable llvm to optimize the code in cases e.g. when the modulo is constant?
<whitequark> __divsi3 is already an intrinsic
<whitequark> oh, nevermind
<whitequark> that's not what you mean
<whitequark> sb0: here's the expanded code in python
<whitequark> div *= div; /* hide "div = +0" from optimizers */
<whitequark> what.
<whitequark> ok, let me look at it some more
<whitequark> see, every time I look further into it there's more of this mess..
<whitequark> maybe I can inline a fast path or something
<sb0> whitequark, where is that div *=.... code from?
<whitequark> your numba link, and eventually from python source
<sb0> mh?
<sb0> the implementation of % in cpython?
<whitequark> yes
<sb0> so, why not do the numba thing?
<sb0> you say it generates too much code, but I don't see much of a problem with that. won't llvm optimize it away when relevant?
<whitequark> it'll only optimize it away when folding constants, otherwise all that crap stays in
<whitequark> I'm currently playing with this code again, I think I can make it a bit less awful
<sb0> and with a C implementation there is no "crap"? which could not even be optimized away when folding constants?
<whitequark> Rust implementation, and an intrinsic is not inlined every time
<whitequark> lack of optimizing is a problem so no this shouldn't be a bare intrinsic call
rohitksingh1 has quit [Quit: Leaving.]
<GitHub182> [smoltcp] steffengy commented on issue #43: @whitequark ... https://git.io/vdZ8j