00:01
klotz has quit [Quit: klotz]
00:51
mwk has quit [Ping timeout: 268 seconds]
01:19
emeb has quit [Quit: Leaving.]
02:49
citypw has joined #yosys
02:59
rohitksingh has joined #yosys
03:08
proteusguy has quit [Ping timeout: 268 seconds]
03:19
develonepi3 has quit [Remote host closed the connection]
04:09
rohitksingh has quit [Ping timeout: 260 seconds]
05:06
Ristovski has quit [Ping timeout: 252 seconds]
05:09
[Ristovski] has joined #yosys
06:08
forrestv has quit [Ping timeout: 248 seconds]
06:14
Jybz has joined #yosys
06:15
forrestv has joined #yosys
06:29
Jybz has quit [Quit: Konversation terminated!]
06:45
parataxis has joined #yosys
06:46
<
parataxis >
loading simlib.v is giving me an error: "/share/yosys/simlib.v:1485: ERROR: System task `$stop' outside initial block is unsupported."
06:47
<
parataxis >
this is from a symbiyosis script, so it might be that simlib.v doesn't work in formal?
06:52
<
parataxis >
oh, I should have used ice40/cells_sim.v
07:06
<
parataxis >
is it normal for calling read_verilog +/ice40/cells_sim.v to use more than 8gb of memory
07:06
<
parataxis >
it would have used more but that was as far as it got before being OOM killed
07:12
<
parataxis >
read_verilog -lib +/ice40/cells_sim.v complains about `\SB_SPRAM256KA' (which I am using) being a "blackbox/whitebox module"
07:12
<
daveshah >
I think you need to do read_verilog -DEQUIV +/ice40/cells_sim.v
07:12
<
daveshah >
This is to do with how some memory is implemented
07:13
<
daveshah >
Definitely not -lib, or you will only get blackboxes as the error says
07:13
<
parataxis >
-DEQUIV gives me that same "blackbox/whitebox module" error
07:16
<
daveshah >
Oh yeah, I see, the problem is that the way the SPRAM block is written is not one that Yosys supports - as it is intended for simulation
07:16
<
daveshah >
Removing the EQUIV and commenting out this always block might fix it
07:16
<
tpb >
Title: yosys/cells_sim.v at master · YosysHQ/yosys · GitHub (at github.com)
07:17
<
parataxis >
I'm trying to use yosys formal on a module that uses that ram block though
07:18
<
parataxis >
I guess I'm not using the poweroff pin so it should be fine
07:21
<
parataxis >
memory blows up again
07:22
<
parataxis >
if it just needs more memory I can run it on a different machine but I susupect it isn't supposed to
07:26
<
daveshah >
What solver are you using?
07:30
<
parataxis >
I don't think it gets to doing any searching though
07:30
<
parataxis >
if I comment out the read -formal line the memory usage still blows up
07:33
X-Scale has joined #yosys
07:54
<
parataxis >
reducing the size of the register in the sram stub fixes the memory blowup so that is the problem
08:12
m4ssi has joined #yosys
08:31
ZipCPU|Laptop has joined #yosys
08:32
blackbit has left #yosys ["WeeChat 2.7-rc1"]
08:39
dh73 has joined #yosys
08:52
parataxis has quit [Ping timeout: 268 seconds]
09:01
N2TOH is now known as N2TOH_ZZz
09:45
dys has joined #yosys
10:00
dys has quit [Ping timeout: 260 seconds]
10:17
[Ristovski] is now known as Ristovski
10:23
cr1901_modern has quit [Ping timeout: 265 seconds]
10:34
cr1901_modern has joined #yosys
11:02
mwk has joined #yosys
12:02
proteusguy has joined #yosys
12:36
kbeckmann has joined #yosys
12:37
rohitksingh has joined #yosys
12:42
dys has joined #yosys
13:28
<
ZirconiumX >
daveshah: What does "ABC: Timing manager is given but there is no GIA of boxes." mean?
13:28
futarisIRCcloud has quit []
13:28
futarisIRCcloud has joined #yosys
13:28
<
daveshah >
ZirconiumX: my guess is that you haven't given it a functional model of the boxes
13:29
<
daveshah >
If you don't have one, make sure that the white/black box flag in the box file is set to 0
13:29
<
ZirconiumX >
I do have a model, though :P
13:29
<
daveshah >
it may still print that even if that is the case, I'm not sure as usually there are models for at least some boxes
13:29
<
daveshah >
is it marked lib_whitebox ?
13:30
<
tpb >
Title: [VeriLog] (* abc9_box_id = 1, lib_whitebox *) module MISTRAL_ALUT_ARITH(input A, B, C, D0 - Pastebin.com (at pastebin.com)
13:30
<
daveshah >
Looks fine
13:30
<
somlo >
ZirconiumX: ironically, bisect tells me commit 151f7533 is to blame (the commit introducing the test case that's bombing out for me :) )
13:31
FSM_Dude has joined #yosys
13:31
<
ZirconiumX >
This is printed by &mfs
13:31
<
tpb >
Title: Preserve pAigExtra when cleaning XAIG by eddiehung · Pull Request #64 · berkeley-abc/abc · GitHub (at github.com)
13:31
<
dh73 >
try that one
13:31
<
ZirconiumX >
It got merged into master, dh73
13:31
<
tpb >
Title: Preserving additional AIG manager when dandling nodes are present. · berkeley-abc/abc@144c5be · GitHub (at github.com)
13:33
<
ZirconiumX >
So it's in the version of ABC I have
13:34
<
FSM_Dude >
So I have a verilog design which I read in to Yosys using: read_verilog input.v. This verilog design has some FSM in it, it is recognised and extracted by Yosys during synthesis. Now at the end of synthesis, I write the synthesised design to output.v. If I would then read_verilog output.v, should Yosys again recognise the FSM?
13:34
<
daveshah >
Not if you've done significant synthesis
13:35
<
daveshah >
FSM extraction is primarily intended to work with RTL, it also relies on the "RTL-style" cells like $mux rather than arbitrary gates
13:37
<
FSM_Dude >
Hmm okay, so after using techmap, dfflibmap and abc it's basically not possible anymore
13:37
<
FSM_Dude >
Great thanks for the help!
14:00
Stary has quit [Ping timeout: 272 seconds]
14:04
ric96 has joined #yosys
14:09
Stary has joined #yosys
14:38
FSM_Dude has quit [Ping timeout: 260 seconds]
14:39
gromero has joined #yosys
15:09
vidbina_ has joined #yosys
15:18
ktemkin has quit []
15:19
ktemkin has joined #yosys
15:38
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
15:55
ZipCPU|Laptop has quit [Remote host closed the connection]
16:06
daveshah has quit []
16:07
daveshah has joined #yosys
16:09
citypw has quit [Ping timeout: 265 seconds]
16:09
vidbina_ has quit [Ping timeout: 268 seconds]
16:21
gruetzkopf has quit [Remote host closed the connection]
16:22
gruetzkopf has joined #yosys
16:23
fsasm has joined #yosys
16:23
rohitksingh has quit [Ping timeout: 245 seconds]
16:59
rohitksingh has joined #yosys
17:09
citypw has joined #yosys
17:10
m4ssi has quit [Remote host closed the connection]
17:21
rohitksingh has quit [Ping timeout: 260 seconds]
17:26
dys has quit [Ping timeout: 245 seconds]
17:30
rohitksingh has joined #yosys
17:30
<
somlo >
ZirconiumX: thanks again for helping me think through it yesterday. As it turns out, the problem had nothing to do with vendoring abc in yosys, and everything to do with Fedora's (relatively stringent) build-time CFLAGS, which I think uncovered some sort of bounds checking or array overflow bug:
https://github.com/YosysHQ/yosys/issues/1663
17:30
<
tpb >
Title: tests/various/bug1531 fails when building with Fedora build flags · Issue #1663 · YosysHQ/yosys · GitHub (at github.com)
17:37
citypw has quit [Ping timeout: 268 seconds]
17:42
<
ZirconiumX >
somlo: can you send me /usr/lib/rpm/redhat/redhat-hardened-{cc1,ld} ?
17:45
<
sorear >
my copy of those files are just forcing PIE and -z now, no array-related hardening
17:45
<
ZirconiumX >
Right, okay
17:56
<
tpb >
Title: *cc1_options: + %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}} - Pastebin.com (at pastebin.com)
17:57
<
tpb >
Title: [Diff] diff --git a/CMakeLists.txt b/CMakeLists.txt index 8131d4a..92b5d18 100644 --- - Pastebin.com (at pastebin.com)
17:59
<
somlo >
ZirconiumX: sorry, I just realized it's a bunch of rpm specfile gibberish... But, basically, what sorear said :)
17:59
<
ZirconiumX >
somlo: So, I just followed the instructions you gave
17:59
<
ZirconiumX >
Aaaand I have a completely
*different* error
17:59
<
tpb >
Title: # +cd tests/realmath && bash run-test.sh "-S 314159265359" cd tests/share && ba - Pastebin.com (at pastebin.com)
18:00
<
ZirconiumX >
Does this pass on your machine?
18:01
<
somlo >
if tests/share are
*before* tests/various in the top-level makefile, then yes :)
18:01
<
ZirconiumX >
I mean, that's tests/realmath
18:02
<
somlo >
`which rename` gives me "/usr/bin/rename", it's apparently a utility to "rename files"...
18:02
<
ZirconiumX >
...Huh.
18:02
<
somlo >
either way, I'm fine all the way through tests/various, so anything listed before that in the "test" toplevel makefile target passes for me
18:04
<
somlo >
ZirconiumX: interestingly enough, "tests/realmath" is commented out in the "master" version of the toplevel makefile, under the "tests" target
18:04
<
somlo >
but it's before "various"
18:05
<
somlo >
I'd be curious if you comment out all tests before "various", if it dies for you as well
18:06
<
somlo >
incidentally, "/usr/bin/rename" on my (Fedora) box is part of the "util-linux-2.33.2-..." package
18:06
<
ZirconiumX >
Mmm, so it's actually passing `rename` as a command to Yosys, (like I suspected)
18:06
<
ZirconiumX >
(tests/realmath/generate.py:69)
18:06
<
somlo >
which is why I assume it's commented out in the master branch afaict
18:08
<
ZirconiumX >
...It's commented out, why is it executing?
18:08
<
ZirconiumX >
In other news I just learned that the testsuite that I went to the trouble of writing never actually gets called in CI. Go me.
18:09
<
ZirconiumX >
At least I learned something from this :P
18:09
fsasm has quit [Ping timeout: 260 seconds]
18:09
<
somlo >
I mean,
*LOTS* of stuff flies by during `make test`, and it's all good until it hits "tests/various", and specifically bug1531.ys
18:10
<
somlo >
that's with the vendored abc, or ABCEXTERNAL, doesn't matter as long as the Fedora CFLAGS are used
18:12
<
ZirconiumX >
Sure enough.
18:13
<
ZirconiumX >
/usr/include/c++/8/bits/stl_vector.h:932: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = Yosys::RTLIL::State; _Alloc = std::allocator<Yosys::RTLIL::State>; std::vector<_Tp, _Alloc>::reference = Yosys::RTLIL::State&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
18:14
s_frit has joined #yosys
18:18
rohitksingh has quit [Ping timeout: 268 seconds]
18:19
<
tpb >
Title: yosys/simplify.cc at master · YosysHQ/yosys · GitHub (at github.com)
18:19
<
ZirconiumX >
This is the crashing line
18:27
<
ZirconiumX >
if (0) { case AST_BIT_AND: const_func = RTLIL::const_and; }
18:27
<
ZirconiumX >
I'd forgotten about Claire's Device
18:30
rohitksingh has joined #yosys
18:31
<
somlo >
ouch, that's like the
*opposite* of "minimal-WTF" :D
18:32
ZipCPU|Laptop has joined #yosys
18:32
<
somlo >
"if it was hard to write, it should be hard to understand" :D
18:33
<
ZirconiumX >
It's effectively a goto :P
18:34
<
Xiretza >
two gotos, really, since it skips all the following `if (0)` and jumps straight to the end
18:44
<
ZirconiumX >
somlo: congrats, you found a bug
18:44
<
somlo >
thanks, and sorry :D
18:44
<
ZirconiumX >
Unfortunately I don't know the codebase well enough to diagnose much further :P
18:45
<
somlo >
that's ok, at least I know I'm not crazy, that's not nothing! :)
18:56
rohitksingh has quit [Ping timeout: 265 seconds]
19:00
rohitksingh has joined #yosys
19:22
Jybz has joined #yosys
19:23
parataxis has joined #yosys
19:30
zkms has quit [Quit: reboot@]
19:31
zkms has joined #yosys
19:47
rohitksingh has quit [Ping timeout: 268 seconds]
20:10
dys has joined #yosys
20:28
rohitksingh has joined #yosys
21:03
Jybz has quit [Quit: Konversation terminated!]
21:34
rohitksingh has quit [Ping timeout: 268 seconds]
21:37
cr1901_modern has quit [Disconnected by services]
21:38
rohitksingh has joined #yosys
21:40
cr1901_modern has joined #yosys
21:48
futarisIRCcloud has joined #yosys
22:11
N2TOH_ZZz has quit [Ping timeout: 265 seconds]
22:12
N2TOH_ZZz has joined #yosys
22:22
dh73 has quit [Quit: Leaving.]
22:23
N2TOH_ZZz has quit [Ping timeout: 240 seconds]
22:24
N2TOH_ZZz has joined #yosys
22:35
rohitksingh has quit [Ping timeout: 268 seconds]
22:36
rohitksingh has joined #yosys
22:43
rohitksingh has quit [Ping timeout: 265 seconds]
22:52
rohitksingh has joined #yosys
23:04
m_w has joined #yosys
23:58
tpb has quit [Remote host closed the connection]
23:59
tpb has joined #yosys