Friday, 2021-07-23

*** tpb <[email protected]> has joined #yosys00:00
*** X-Scale <[email protected]> has joined #yosys00:00
*** emeb_mac <[email protected]> has quit IRC (Ping timeout: 276 seconds)00:27
*** gsmecher <[email protected]> has quit IRC (Ping timeout: 250 seconds)00:28
*** emeb_mac <[email protected]> has joined #yosys00:33
*** diadatp <diadatp!uid508601@user/diadatp> has quit IRC ()00:55
*** diadatp <diadatp!~diadatp@user/diadatp> has joined #yosys01:01
*** Guest96 <[email protected]> has joined #yosys01:02
*** Guest96 <[email protected]> has left #yosys01:11
*** vidbina <[email protected]> has joined #yosys06:07
*** vidbina <[email protected]> has quit IRC (Ping timeout: 255 seconds)06:25
*** emeb_mac <[email protected]> has quit IRC (Quit: Leaving.)07:01
*** vidbina <[email protected]> has joined #yosys07:35
*** vidbina <[email protected]> has quit IRC (Ping timeout: 240 seconds)08:24
*** vidbina <[email protected]> has joined #yosys08:36
*** Kamilion <Kamilion!~kvirc@user/kamilion> has quit IRC (Ping timeout: 246 seconds)09:36
*** Kamilion <Kamilion!~kvirc@user/kamilion> has joined #yosys09:40
*** jix <jix!~jix@user/jix> has quit IRC (Quit: quit)10:01
*** jix <jix!~jix@user/jix> has joined #yosys10:02
*** vidbina <[email protected]> has quit IRC (Ping timeout: 252 seconds)12:21
*** vidbina <[email protected]> has joined #yosys14:43
*** emeb <[email protected]> has joined #yosys15:34
*** gsmecher <[email protected]> has joined #yosys15:44
*** vidbina <[email protected]> has quit IRC (Ping timeout: 240 seconds)18:28
tntErr, how do you execute a yosys script then get an interactive prompt once its done ?19:17
tntMy google-fu is failing me :/19:17
gatecatthe "shell" command does that19:17
gatecatyou could do -p "script script_file.ys; shell"19:18
tntOh, ok, yeah that works. tx.19:18
*** emeb_mac <[email protected]> has joined #yosys19:20
tntSo, I'm trying to use cxxrtl to simulate a SoC because iverilog is a bit on the slow side when simulating past a few millions cycles. First time using cxxrtl at all, so I'm still figuring things out but ATM the generated C++ takes 8 minutes to build ( and ~ 9G of RAM ).20:24
tntThe SoC contains RAM of course, which for sim in iverilog I replaced the memory controller / phy / ... with just a flat reg [31:0] mem[0:8388607]; arrays and I'm using that for cxxrtl too.20:25
whitequarkthe current implementation is inefficient at handling very large memories20:26
whitequarkreplacing it with a black box is one possible workaround20:26
tntOk, I'll give that a shot.20:27
whitequarklet me know if you hit any issues20:28
whitequarkyou will likely need the (* cxxrtl_sync *) attribute on the dout port20:28
tntIn a somewhat related topic, the SPRAM model in cells_sim.v isn't appreciated by yosys (I'm loading cells_sim because I need cxxrtl to sim some of the primitives ...).  I patched it to mkae it digested better (at the price of sim accuracy but heh can't have everything). 20:29
tntIs there a `define that I should be using to have that included upstream to enable/disable that patch ?20:30
tnt(Basically the sim model simulated the various shutdown and standby modes and that just uses a bunch of async stuff which doesn't go well)20:31
whitequarkCXXRTL is synthesis-like, so maybe `ifdef SYNTHESIS ?20:31
whitequarkI'm not sure though20:31
tntHeh. googling cxxrtl_sync isn't giving much info about what this is for 20:32
whitequarkplease take a look at `help write_cxxrtl`; there is an introduction in that text20:32
tntack20:33
*** vidbina <[email protected]> has joined #yosys21:05
*** ZipCPU <[email protected]> has quit IRC (Ping timeout: 252 seconds)21:17
*** ZipCPU <[email protected]> has joined #yosys21:18
*** dys <dys!~dys@user/dys> has quit IRC (Ping timeout: 252 seconds)21:18
tntMmm, doesn't seem to have improved build time unfortunately.  I haven't actually implemented the blackbox yet, but it takes like 10+ minutes to complete compilation and throw error about missing symbol.21:41
tntLess memory used and the .cpp went from 51M down to 7M so that's at least some gain.21:42
*** dys <dys!~dys@user/dys> has joined #yosys21:45
*** vidbina <[email protected]> has quit IRC (Ping timeout: 255 seconds)22:06

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!