ChanServ changed the topic of #nmigen to: nMigen hardware description language · code at https://github.com/nmigen · logs at https://freenode.irclog.whitequark.org/nmigen · IRC meetings each Monday at 1800 UTC · next meeting TBD
lkcl has joined #nmigen
nfbraun has quit [Quit: leaving]
lf_ has quit [Ping timeout: 258 seconds]
lf has joined #nmigen
ktemkin has quit [Read error: Connection reset by peer]
ktemkin has joined #nmigen
<_whitenotifier> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://git.io/JLM9v
<_whitenotifier> [YoWASP/yosys] whitequark e14ef31 - Update dependencies.
electronic_eel has joined #nmigen
electronic_eel_ has quit [Ping timeout: 268 seconds]
PyroPeter_ has joined #nmigen
PyroPeter has quit [Ping timeout: 264 seconds]
PyroPeter_ is now known as PyroPeter
Degi_ has joined #nmigen
Degi has quit [Ping timeout: 272 seconds]
Degi_ is now known as Degi
Bertl is now known as Bertl_zZ
emeb_mac has quit [Quit: Leaving.]
jeanthom has joined #nmigen
jeanthom has quit [Ping timeout: 240 seconds]
nfbraun has joined #nmigen
Bertl_zZ is now known as Bertl
bvernoux has joined #nmigen
emeb has joined #nmigen
peeps[zen] has joined #nmigen
peepsalot has quit [Ping timeout: 240 seconds]
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
peeps[zen] has quit [Ping timeout: 240 seconds]
peepsalot has joined #nmigen
peeps[zen] has joined #nmigen
peepsalot has quit [Ping timeout: 240 seconds]
SpaceCoaster has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
SpaceCoaster has joined #nmigen
peepsalot has joined #nmigen
peeps[zen] has quit [Ping timeout: 272 seconds]
SpaceCoaster has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
SpaceCoaster has joined #nmigen
nfbraun has quit [Ping timeout: 256 seconds]
nfbraun has joined #nmigen
<_whitenotifier> [nmigen] cestrauss opened issue #568: cxxsim: error when reading unused combinatorial signal - https://git.io/JLytj
emeb_mac has joined #nmigen
korken89 has joined #nmigen
<korken89> Hi all, I'm bringing up an ECP5 board which has its clock directly connected to a dedicated PLL input pin (LRC_GPLLOT_IN), hence I need to instantiate a PLL to provide the system with a system clock. Greping around in the nmigen code I am unable to find how to instantiate a PLL, is there anyone here that has done this?
Bertl is now known as Bertl_oO
<d1b2> <dub_dub_11> you need to generate the Verilog core and Instance it
<korken89> Hmm, that's unfortunate - I'd like to find a way using nmigen. I found this PR (and related issue): https://github.com/nmigen/nmigen/pull/426 , I wonder if the code in the PR is usable. I've never used the `Instance` before, so this will be interesting :)
<d1b2> <dub_dub_11> PLLs in nMigen is a WIP
<d1b2> <dub_dub_11> as you have found yeah
<vup> using `Instance` should work
<smkz> is there an idiomatic/recommended way to determine at compile-time the necessary width of a signal based on the largest value it can have (like, doing a log 2)
<Sarayan> Doesn't nmigen do that automatically when you tell it the range of values instead of a number of bits?
<agg> korken89: if you haven't got it already, https://dpaste.com/BFBTW533B might be useful
<agg> smkz: s = Signal(range(1000)) will make a ten-bit signal for example
<smkz> agg: perfect, thank you
<agg> korken89: you can use `ecppll` (part of prjtrellis) or lattice diamond to generate the relevant configuration attributes/parameters
<agg> and the lattice document "FPGA Libraries Reference Guide" contains all available attributes/params/ports for all the ECP5 primitives
<RaYmAn> korken89: kbeckmann also has this possibly slightly WIP module https://github.com/kbeckmann/pergola_projects/blob/master/pergola/util/ecp5pll.py (I think there wa
<RaYmAn> err
<RaYmAn> it's similar to the one you posted though.
<korken89> Thanks! Seems like for a simple static config this should work fine :)
lambda has quit [Ping timeout: 260 seconds]
Ultrasauce has quit [Ping timeout: 260 seconds]
Ultrasauce has joined #nmigen
lambda has joined #nmigen
<kbeckmann> that python code is just my attempt at porting the ecp5pll c++ code to python
<kbeckmann> it might be subtly wrong as i don't quite understand what it's doing, i just ported it. but it works!
<korken89> :D
sakirious has quit [Ping timeout: 240 seconds]
sakirious has joined #nmigen
korken89 has quit [Ping timeout: 245 seconds]
bvernoux has quit [Quit: Leaving]
nfbraun has quit [Quit: leaving]