Saturday, 2021-07-24

*** tpb <[email protected]> has joined #yosys00:00
*** GenTooMan <GenTooMan!~cyberman@2601:547:437f:e5c6:21f:5bff:fefe:a883> has quit IRC (Ping timeout: 272 seconds)00:06
*** gsmecher <[email protected]> has quit IRC (Ping timeout: 250 seconds)00:12
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has quit IRC (Ping timeout: 252 seconds)00:15
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has joined #yosys00:15
*** GenTooMan <GenTooMan!~cyberman@2601:547:437f:e5c6:21f:5bff:fefe:a883> has joined #yosys00:29
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has quit IRC (Ping timeout: 265 seconds)00:49
*** kristianpaul <[email protected]> has joined #yosys00:51
*** Xark <[email protected]> has quit IRC (Ping timeout: 258 seconds)01:34
*** emeb <[email protected]> has quit IRC (Quit: Leaving.)02:26
*** DiffieHellman <DiffieHellman!~Username@user/curve25519chacha> has joined #yosys03:13
*** corecode_ is now known as corecode04:00
*** bpye <bpye!~bpye@user/bpye> has joined #yosys04:19
*** emeb_mac <[email protected]> has quit IRC (Quit: Leaving.)07:07
*** peeps <peeps!~peepsalot@openscad/peepsalot> has quit IRC (Quit: Connection reset by peep)08:10
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #yosys08:11
DiffieHellmanThis may be the wrong place, but here I go anyway. I'm trying to do UART loopback (i.e. type in GNU screen and the character is displayed). I'm using 9600 baud and no parity bit. I did get it working, but garbage output for some characters is returned if I type fast. For the rx/tx input/output loop, I used 19200Hz, but different clock rates have all the same issues. I also tried making a FIFO09:00
DiffieHellmanbuffer, but I get the same thing. Any suggestions?09:00
sorearinsufficient stop bits?09:04
tnthuh ... what uart core are you using ?09:08
DiffieHellmanI just used 1 stop bit, but I guess I could make it 2. tx should just work as tx only, works fine at high speeds with 0 errors, but I guess it isn't.09:08
DiffieHellmantnt: I'm not using an UART core, just some magic I wrote up myself.09:08
tnt"some magic" ?   I'm not sure what you expect as answer ... without seeing the logic, the most insight I can provide is "your code is buggy" ...09:10
DiffieHellmanI'll upload it to my git so you can see it I guess.09:10
tntdid you simulate it ?09:11
DiffieHellmanSimulation is no fun, I always just go straight to hardware. I made the previous version pass a linter and that's about it.09:12
tntok, well I'll leave you have fun then.09:14
tntwouldn't want to spoil it.09:14
tntwhitequark: I'm a bit lost in the templates when trying to implement the blackbox.  Do you see anything wrong with  :10:05
tntthis->p_mem__rdata.set<uint32_t>( this->mem[this->p_mem__addr.get<uint32_t>()] );10:05
tnt(I mean, it doesn't build so it's obviously wrong, but the error "error: use 'template' keyword to treat 'get' as a dependent template name" means nothing to me)10:05
tntOk ... nm ... apparently it's:10:12
tntthis->p_mem__rdata.template set<uint32_t>( this->mem[this->p_mem__addr.template get<uint32_t>()] );10:12
tntI have never seen 'template' used in the middle of an expression like that in my life ...10:12
*** AdamHord- <[email protected]> has joined #yosys11:12
*** AdamHorden <[email protected]> has quit IRC (Ping timeout: 255 seconds)11:13
*** freemint <[email protected]> has joined #yosys11:19
tntSo ... I was hoping this would implement a sync memory : https://pastebin.com/cyHubejG12:35
tpbTitle: template<size_t AW>boolbb_p_memsim__data_impl<AW>::eval(){ if (this-> - Pastebin.com (at pastebin.com)12:35
tntBut it doesn't look like it does. The reads look async with the data changing as soon as the address is changing.12:35
*** AdamHorden <[email protected]> has joined #yosys12:48
*** AdamHord- <[email protected]> has quit IRC (Ping timeout: 256 seconds)12:48
*** freemint <[email protected]> has quit IRC (Ping timeout: 250 seconds)13:00
*** acksys is now known as fmahnke13:02
*** fmahnke is now known as acksys13:05
*** acksys is now known as fmahnke13:05
fmahnkeCome someone recommend a channel or forum to get beginner help with the ice40 breakout boards? Not necessarily yosys related.13:17
*** likewise <[email protected]> has joined #yosys14:37
*** X-Scale <[email protected]> has quit IRC (Ping timeout: 258 seconds)14:41
*** likewise <[email protected]> has left #yosys (Leaving)14:41
*** likewise <[email protected]> has joined #yosys14:44
*** X-Scale <[email protected]> has joined #yosys15:07
*** X-Scale <[email protected]> has quit IRC (Read error: Connection reset by peer)15:15
tntMmm, look like cxxrtl is also not simulating SB_RAM40_4KNW properly. SB_RAM40_4K seems to work, but not the variant with inverted write clock.15:28
whitequarkyes, multiclock designs with CXXRTL do not currently entirely work15:31
whitequarkthis is a known issue I'm looking into recently15:31
whitequark<tnt "So ... I was hoping this would i"> could you file an MCVE on the Yosys bug tracker?15:31
tntwhitequark: you mean the blackbox snipped I pasted is actually supposed to work ?  I thought I had misunderstood the API or something.15:44
whitequarktnt: looks reasonable to me, but it's not the complete design15:45
tntyeah, I'll try to make a minimal example15:47
*** emeb <[email protected]> has joined #yosys16:21
*** vidbina <[email protected]> has joined #yosys16:31
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has quit IRC (Ping timeout: 255 seconds)16:35
*** vidbina <[email protected]> has quit IRC (Ping timeout: 252 seconds)16:36
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has joined #yosys16:37
tntwhitequark: https://github.com/YosysHQ/yosys/issues/288716:46
whitequarkthank you16:49
tntOk, well, I see why it doesn't work ... but ... not what the right fix is. 17:29
whitequarkyeah?17:30
tnthttps://pastebin.com/mxgpjeLK17:30
tpbTitle: cell_p_dut__I->p_clk = p_clk.curr; cell_p_dut__I->p_mem__we = p_mem__ - Pastebin.com (at pastebin.com)17:30
whitequarkoh yes, this is a race17:30
tntFor the "posedge" detection thing to work, the eval should be between after the p_clk assignement and the "input" assignements.17:30
whitequarkin zero physical time17:30
whitequarkokay, that's... yeah, that's a non-trivial problem17:36
tntOk, that's unfortunate.  I worked around it for now by "sampling" (i.e. doing the get()) on negative edge, and then using that value when doing the lookup and set() on the positive edge. Not ideal but will have to do for now. 18:05
whitequarkyes, that works18:05
whitequarkonce I have the redesign of the scheduler finished, it will work properly18:05
whitequarkthat is long overdue anyway18:05
*** emeb_mac <[email protected]> has joined #yosys18:07
*** freemint <freemint!~freemint@2001:638:904:ffe8:5579:9a60:54bd:c5b2> has joined #yosys18:28
*** emeb_mac <[email protected]> has quit IRC (Ping timeout: 252 seconds)18:47
*** emeb <[email protected]> has quit IRC (Ping timeout: 250 seconds)18:48
*** emeb <[email protected]> has joined #yosys18:52
*** emeb_mac <[email protected]> has joined #yosys18:53
*** AdamHorden <[email protected]> has quit IRC (Ping timeout: 265 seconds)19:54
*** AdamHorden <[email protected]> has joined #yosys19:55
*** AdamHorden <[email protected]> has quit IRC (Ping timeout: 265 seconds)20:17
*** AdamHorden <[email protected]> has joined #yosys20:19
*** AdamHorden <[email protected]> has quit IRC (Ping timeout: 245 seconds)20:25
*** AdamHorden <[email protected]> has joined #yosys20:59
*** AdamHorden <[email protected]> has quit IRC (Quit: ZNC - https://znc.in)21:32
*** AdamHorden <[email protected]> has joined #yosys21:34
*** AdamHorden <[email protected]> has quit IRC (Client Quit)21:35
*** AdamHorden <[email protected]> has joined #yosys21:38
*** freemint <freemint!~freemint@2001:638:904:ffe8:5579:9a60:54bd:c5b2> has quit IRC (Ping timeout: 256 seconds)22:04
*** freemint <freemint!~freemint@2001:638:904:ffe8:2abf:c8f8:8aa3:41d7> has joined #yosys22:06
*** likewise <[email protected]> has quit IRC (Remote host closed the connection)22:07
*** freeemint <freeemint!~freemint@2001:638:904:ffe8:5579:9a60:54bd:c5b2> has joined #yosys22:35
*** freemint <freemint!~freemint@2001:638:904:ffe8:2abf:c8f8:8aa3:41d7> has quit IRC (Ping timeout: 240 seconds)22:38

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