pepijndevos changed the topic of #apicula to: Project Apicula: bitstream documentation and tooling for Gowin FPGAs https://github.com/YosysHQ/apicula -- logs https://freenode.irclog.whitequark.org/apicula
omnitechnomancer has quit [Ping timeout: 240 seconds]
omnitechnomancer has joined #apicula
<pepijndevos_> welp, getting some weird issues... maybe uninitialised memory or some pointer that got into a IdString :(
<daveshah> valgrind it
<pepijndevos_> how?
<pepijndevos_> also lol:
<pepijndevos_> Info: port cpu.cpuregs.regs[11][20]_DFFE_Q_DFFLC.I2, connected to net 'cpu.reg_pc[22]_LUT4_I1_I2[2]', has timing budget of 340282346638528859811704183484516925440.000000ns
<daveshah> usually valgrind will tell you if you are relying on uninitialised memory
<pepijndevos_> that's 0xffffff00000000000000000000000000 in hex
<pepijndevos_> usually you have to run valgrind with a particular tool right
<daveshah> i just the default one for this kind of stuff
<pepijndevos_> alright
<daveshah> it will spew a load of crap at the start from python, you can either ignore that or find the flag to not print stuff coming from that so
<daveshah> or build without python
<pepijndevos_> trying...
<pepijndevos_> I forgot how slow valgrind is...
<pepijndevos_> seeing lots of ==25727== Invalid read of size 4
<pepijndevos_> ==25727== at 0x1866B0: nextpnr_gowin::Context::checksum() const (nextpnr.cc:366)
<pepijndevos_> but seems irrelevant
<pepijndevos_> ==25727== Invalid read of size 8
<pepijndevos_> ==25727== at 0x17DCF2: std::_Hashtable<nextpnr_gowin::IdString, std::pair<nextpnr_gowin::IdString const, nextpnr_gowin::PortInfo>, std::allocator<std::pair<nextpnr_gowin::IdString const, nextpnr_gowin::PortInfo> >, std::__detail::_Select1st, std::equal_to<nextpnr_gowin::IdString>, std::hash<nextpnr_gowin::IdString>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashta
<pepijndevos_> ble_traits<false, false, true> >::_M_find_before_node(unsigned long, nextpnr_gowin::IdString const&, unsigned long) const (hashtable.h:1573)
<pepijndevos_> enjoy your C++ soup
<pepijndevos_> lemme google what that even means
<daveshah> looks like a bad cell port to me
<daveshah> incidentally, it probably won't help here but if you are debugging a packer I'd strongly recommend having https://github.com/YosysHQ/nextpnr/commit/70de8b3a03a62cd1be8732cf5916800322a12a17 in your tree if it isn't already
<pepijndevos_> it is not, thanks
<pepijndevos_> yea, probably my initialization is all wrong...
<daveshah> I think what is probably happening is a reference to a deleted cell is remaining on a net
<pepijndevos_> hmmmm okay, so that could be for example packing deleting a cell, but missing one of its inputs?
<pepijndevos_> Yea what's probably happening... the Gowin DFF cells have LSR and CE, but the generic DFF does not, so I forgot to deal with those inputs.
_whitelogger has joined #apicula