clifford changed the topic of #yosys to: Yosys Open SYnthesis Suite: http://www.clifford.at/yosys/ -- Channel Logs: https://irclog.whitequark.org/yosys
bluesceada has quit [Ping timeout: 268 seconds]
emeb_mac has joined #yosys
gsi_ has joined #yosys
gsi__ has quit [Ping timeout: 272 seconds]
svenn has quit [Ping timeout: 272 seconds]
Cerpin has quit [Ping timeout: 272 seconds]
Cerpin has joined #yosys
promach has joined #yosys
<promach> Does yosys support systemverilog "inside" keyword yet ?
<promach> seems like yosys does not support fully "inside" keyword, same problem here with https://www.xilinx.com/support/answers/64777.html
<tpb> Title: AR# 64777: Vivado Synthesis - System Verilog case inside range expression support (at www.xilinx.com)
<promach> daveshah : have you encountered such situation previously ?
<promach> I have set up a small test code that illustrates the problem
<tpb> Title: System Verilog case inside range expression support : yosys (at www.reddit.com)
emeb has quit [Quit: Leaving.]
citypw has joined #yosys
rohitksingh_work has joined #yosys
sxpert has quit [Ping timeout: 255 seconds]
sxpert has joined #yosys
svenn has joined #yosys
AlexDaniel has joined #yosys
citypw has quit [Ping timeout: 244 seconds]
emeb_mac has quit [Ping timeout: 240 seconds]
cr1901_modern has quit [Quit: Leaving.]
MoeIcenowy has quit [Quit: ZNC 1.6.5+deb1+deb9u1 - http://znc.in]
MoeIcenowy has joined #yosys
GuzTech has joined #yosys
m4ssi has joined #yosys
cr1901_modern has joined #yosys
pie__ has quit [Remote host closed the connection]
pie__ has joined #yosys
leviathanch has joined #yosys
<somlo> daveshah: the trellis versa5g soc example gets a 50MHz clock with the non-default (w.r.t. yosys/ecp5/cells_bb.v) settings of .CLKI_DIV(2), .CLKOP_DIV(12), .CLKOP_CPHASE(11). For a 10MHz clock (for the rocket chip), you got Diamond to come up with .CLKI_DIV(10), .CLKOP_DIV(65), .CLKOP_CPHASE(64).
<somlo> Turns out, on a *real* 5g ecp5 the rocket chip can go as fast as 24MHz. I get CLKI_DIV (would need 5 for 20MHz), but what about CLKOP_DIV and CLKOP_CPHASE?
<somlo> ecppll generates 10 and 50 MHz pll settings that are pretty radically different from the working ones we're currently using, so I'm wondering if there's just more than one canonical way to set the pll to generate a given frequency, or what...
<daveshah> There are different feedback path options, which are the main difference
<daveshah> The important thing is to keep the VCO in its 400-800MHz range
rohitksingh_work has quit [Read error: Connection reset by peer]
<somlo> ecppll also generates different ICP_CURRENT and LPF_RESISTOR values (12, 8) vs. what's in the working examples (6, 16) respectively. Should I worry about that ? :)
<sxpert> damned, things that work in simulation, and miserably fail on chip
<daveshah> No one has figured out the algorithm to determine those values ye5
<daveshah> *yet
<daveshah> They don't seem to be critical, just optimising lock time and jitter I think
<somlo> so the 20MHz clock as generated by ecppll seems to work (blinking twice as fast now :) )
<somlo> nextpnr *sometimes* meets >= 24 MHz, but not always, so I think I'll stick with 20 for now...
promach_ has joined #yosys
citypw has joined #yosys
citypw has quit [Ping timeout: 245 seconds]
ZipCPU has quit [Quit: ZNC 1.6.4 - http://znc.in]
ZipCPU has joined #yosys
citypw has joined #yosys
maikmerten has joined #yosys
emeb has joined #yosys
leviathanch has quit [Remote host closed the connection]
rohitksingh has joined #yosys
citypw has quit [Ping timeout: 272 seconds]
proteusguy has quit [Ping timeout: 252 seconds]
kristianpaul has quit [Quit: leaving]
kristianpaul has joined #yosys
kristianpaul has quit [Quit: Lost terminal]
Cerpin has quit [Ping timeout: 250 seconds]
Cerpin has joined #yosys
kristianpaul has joined #yosys
m4ssi has quit [Remote host closed the connection]
<MoeIcenowy> somlo: I think you can try to run a for loop to get nextpnr to try to meet 24MHz ;-)
<tnt> (changing the seed ...)
rohitksingh has quit [Ping timeout: 252 seconds]
<somlo> MoeIcenowy: if at first you don't succeed... :D
FL4SHK has quit [Ping timeout: 250 seconds]
promach_ has quit [Ping timeout: 246 seconds]
<MoeIcenowy> I remember the Supra tool from AGM have such a function to run for a loop to reach timing
<tnt> Multi Pass Place and Route is/was in Xilinx tools as well.
rohitksingh has joined #yosys
proteusguy has joined #yosys
FL4SHK has joined #yosys
rohitksingh has quit [Ping timeout: 246 seconds]
proteusguy has quit [Ping timeout: 252 seconds]
maikmerten has quit [Remote host closed the connection]
<corecode> i should install trellis and figure out how fast my cpu can run on an ecp5
<sxpert> mine looks like it can do 50MHz easily, on the good compilation days
<corecode> and on the ice40?
<sxpert> haven't tried for a while
<corecode> ok
<sxpert> need to update the script
<sxpert> at this time it wouldn't fit in the ice40, am using up all of the brams for rom and ram ;-)
<corecode> chubby
<sxpert> that is 192 of them ;-)
<sxpert> and only 1/2 the system rom ;(
<sxpert> last run, 36Mhz prior to routing, 65.66 after
<corecode> wow, it sped up
<sxpert> yeah, it moves randomly
<sxpert> with me adding stuff ;-0
<sxpert> been re-writing from march 6, had some wierd behavior that I couldn't fix
<corecode> so i want to build a generic debug adapter, which means mostly bit wiggling in different ways, and different control flows; i wonder whether i should try to avoid a mcu and do it in fpga
<sxpert> so, branched from there, and slowly re-adding the bits from master
<sxpert> ok, time to head to bed
<sxpert> enough hadking for the night
<sxpert> ah no, one more thing I need to check
<sxpert> then commit and push
<sxpert> compiling the design takes a good 10mn
<sxpert> damnit
<daveshah> sxpert: did you try the new placer?
<sxpert> daveshah: nope
<sxpert> is it out yet ?
<daveshah> It's still not upstream
<daveshah> But on a pull request
<sxpert> ah
<tpb> Title: HeAP-based analytical placer by daveshah1 · Pull Request #219 · YosysHQ/nextpnr · GitHub (at github.com)
<sxpert> how does it apply to a head tree ?
<corecode> nice
<daveshah> git remote add daveshah1 https://github.com/daveshah1/nextpnr && git pull daveshah1 && git checkout placer_heap
<tpb> Title: GitHub - daveshah1/nextpnr: nextpnr portable FPGA place and route tool (at github.com)
<daveshah> Should do it
<sxpert> then make clean && make
<daveshah> Yes
<daveshah> You'll also need to install eigen3
<daveshah> libeigen3-dev on ubuntu
<sxpert> ok, installed just in time before it has a chance to barf ( while it is building chipdb-85k.bba ;-) )
<sxpert> ah, latest run 69.00 MHz
<sxpert> I only removed a couple ifs that were doing the same thing !
<corecode> if they do the same thing, they get optimized away
<sxpert> somehow something did something different ;-)
<daveshah> Most likely enough to change ordering of nets and cells, if nothing else
<daveshah> That will result in a totally different initial placement
<sxpert> I see
<sxpert> so it's mostly random, there's no method to this madness ;-)
<sxpert> ok, so baseline nextpnr generate something that is verified to work
<daveshah> You can always peturb the placement and routing with the --seed parameter to nextpnr
<sxpert> daveshah: according to the pr page, there is still an issue compiling on ubuntu 16.04
<daveshah> No, that's a regression test failure
<sxpert> ah
<daveshah> It's a design that fails sometimes on master too
<sxpert> ah !
<daveshah> The test needs looking at properly
<sxpert> somehow at the limits of whatever it's trying to do ?
<daveshah> Yes
<sxpert> ah the test is somewhat b0rk, that will do it ;)
<sxpert> sometimes it fits in, sometimes it randomly can't
<sxpert> I see
<somlo> re. PR #219, if any of you have a Fedora box laying around this is what I'm using: http://www.contrib.andrew.cmu.edu/~somlo/nextpnr-rpm/
<tpb> Title: Index of /~somlo/nextpnr-rpm (at www.contrib.andrew.cmu.edu)
* sxpert hopes to never have to run yosys and nextpnr on his Sparcstation V ;-)
* sxpert also hopes nobody attempts a port on vax ;-)
<sorear> mm?
<sxpert> it takes like 30mn to compile on a 4 cores laptop with 16G of ram ;-)
<sxpert> and your average design take 10mn or so on the same machine
<sxpert> now imagine on a 1MHz vax ;-)
<FL4SHK> yes, formally verify on a 1 MHz machine
<sxpert> hahaha
<sxpert> insert <2000 years later> card from spongebob squarepants
<FL4SHK> lol
<FL4SHK> yes
<FL4SHK> OLD freaking episode
<sxpert> why does make install rebuilds the bba files ?
<daveshah> Probably a bug
<sxpert> daveshah: also it looks like the work is done twice
<sxpert> ah, looke like "make", followed by "sudo make install" rebuilds everything
<sxpert> ok, all compiled and installed (including new trellis and yosys)
<sxpert> daveshah: hmm
<sxpert> Info: Running simulated annealing placer.
<sxpert> is there an option I need to pass in ?
<daveshah> Did it run HeAP first?
<sxpert> did initial placement, then this one
<daveshah> Did it print out anything about solving or spreading?
<sxpert> not that I can see
<daveshah> Sounds like it didn't build the new placer
<daveshah> It should be the default for ECP5
<sxpert> nextpnr-ecp5 -- Next Generation Place and Route (git sha1 4c73061)
<sxpert> is the version I have
<daveshah> Can you post the full --help
<tpb> Title: nextpnr-ecp5 -- Next Generation Place and Route (git sha1 4c73061) General op - Pastebin.com (at pastebin.com)
<FL4SHK> yosys doesn't do place and route, does it?
<cr1901_modern> no
<daveshah> sxpert: there should be some new options, including --sa-placer to switch to the old placer, in there
<FL4SHK> ...I've only used yosys for formal verification myself
<sxpert> daveshah: should I have re-run configure or whatever it is ?
<daveshah> sxpert: rerunning CMake shouldn't be needed in this case
<daveshah> It certainly wouldn't cause this problem
<daveshah> What does is the last commit in git log in nextpnr
<sxpert> ah
<sxpert> placer1: Only get criticalities when in timing-driven mode
<sxpert> I notice
<sxpert> A CMake option 'BUILD_HEAP' (default on) configures building of the
<sxpert> HeAP placer and the associated Eigen3 dependency.
<daveshah> Commit sounds correct
<daveshah> That option is default on, so it should be fine
<daveshah> Even if it was turned off, that command line help still isn't correct
<sxpert> ok
<sxpert> well, bedtime here
<sxpert> see you tomorrow
tpb has quit [Remote host closed the connection]
tpb has joined #yosys