*** tpb <[email protected]> has joined #yosys | 00:00 | |
*** lumo_e <[email protected]> has quit IRC (Quit: Quit) | 00:29 | |
*** bl0x <[email protected]> has joined #yosys | 02:53 | |
*** bl0x_ <bl0x_!~bl0x@p200300d7a70df80054d205d70cf7607c.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 252 seconds) | 02:54 | |
*** kivikakk <[email protected]> has quit IRC (Read error: Connection reset by peer) | 03:55 | |
*** pbsds <[email protected]> has quit IRC (Quit: The Lounge - https://thelounge.chat) | 03:57 | |
*** pbsds <[email protected]> has joined #yosys | 03:59 | |
*** crzwdjk <[email protected]> has quit IRC (Quit: Client closed) | 04:53 | |
*** skipwich_ <skipwich_!~skipwich@user/skipwich> has quit IRC (Ping timeout: 265 seconds) | 05:32 | |
*** skipwich <skipwich!~skipwich@user/skipwich> has joined #yosys | 05:33 | |
*** kivikakk <[email protected]> has joined #yosys | 06:27 | |
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:911:40ab:efe6:2026:d4c2> has joined #yosys | 06:30 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:a1d7:b6ef:d9ef:bcab> has quit IRC (Killed (NickServ (GHOST command used by cr1901_!~cr1901@2601:8d:8600:911:40ab:efe6:2026:d4c2))) | 06:31 | |
*** cr1901_ is now known as cr1901 | 06:31 | |
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has quit IRC (Ping timeout: 265 seconds) | 07:04 | |
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has joined #yosys | 07:07 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:40ab:efe6:2026:d4c2> has quit IRC (Read error: Connection reset by peer) | 08:33 | |
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:911:49ba:3ff7:be12:607f> has joined #yosys | 08:33 | |
*** singham <singham!~singham@2405:201:f:1e5a:f53d:213e:e018:d1cb> has joined #yosys | 08:41 | |
singham | Is there a list of non-synthesizable features of Verilog for yosys, nextpnr somewhere? | 08:41 |
---|---|---|
*** josuah <[email protected]> has quit IRC (Ping timeout: 268 seconds) | 09:27 | |
*** josuah <[email protected]> has joined #yosys | 09:29 | |
*** Raito_Bezarius <Raito_Bezarius!~Raito@wireguard/tunneler/raito-bezarius> has quit IRC (Read error: Connection reset by peer) | 09:51 | |
*** Raito_Bezarius <Raito_Bezarius!~Raito@wireguard/tunneler/raito-bezarius> has joined #yosys | 09:52 | |
singham | Anyone? | 10:36 |
singham | I ask because in simulation, I'm getting the right results | 10:36 |
singham | But flashing on my iCE40 board, I get nothing | 10:37 |
singham | If you've faced such issues, any help will be appreciated | 10:37 |
tnt | You will get warning for anything that's non-synthesizable. | 10:42 |
tnt | However sim mismatches are a MUCH wider set than non-synthesizable ... | 10:43 |
tnt | Post your code somewhere ... | 10:44 |
singham | It's big | 10:45 |
singham | How can I see sim mismatches? | 10:45 |
tnt | Well then hire someone ... but there is no way we can give you a full digital design course over IRC ... | 10:45 |
singham | I mean in verilog there is synthesizable code right | 10:46 |
singham | So as long as I write synthesizable verilog, sim should equate synth right? | 10:46 |
singham | I have done a course on digital electronics, and a course on verilog from IIT KGP on hardware modelling | 10:48 |
jix_ | singham: there's IEEE 1364.1 which defines some synthesizable verilog, but it's much more conservative than what's used in practice and there's no equivalent for systemverilog AFAIK, but even for that restrictive subset there are sim mismatches | 10:49 |
singham | The paper is paid | 10:50 |
singham | Is there a list of accepted verilog keywords in yosys | 10:51 |
tnt | synthesizable != deterministic you can write verilog that's synthesizable but that has behaviors "left to the implementation" and so the sim and synthesis tool are free to take different choices. | 10:52 |
tnt | And that's excluding all the "real world" things that can change real behavior from sim ( unstable clock / hw limitations / any "external device and IO timings / real world delays / ... ) | 10:54 |
singham | Yes, but the net effect should be same right?! | 10:57 |
singham | Lowering clock frequency should get rid of those issues, shouldn't it? | 10:57 |
jix_ | even _excluding_ all that, you still can have synthesizable verilog with sim mismatches | 10:59 |
jix_ | if you suspect the issue actually is such a mismatch, you can try to see if you can reproduce the issue with a post synth simulation | 11:00 |
singham | I think, then, those are the issues with simulation and synthesis tools | 11:00 |
singham | Any HDLs should go towards perfect simulation and reasonably good synthesis such that final logic is delivered. | 11:01 |
jix_ | it's an issue of verilog itself really, if you follow the standards you can still get mismatches for perfectly valid verilog | 11:01 |
singham | if there's an if else statement within always block, does it need begin end | 11:01 |
singham | always @(posedge clk) if foo this; else that; | 11:02 |
*** ec <ec!~ec@gateway/tor-sasl/ec> has quit IRC (Ping timeout: 255 seconds) | 11:02 | |
singham | Is this syntactically correct or | 11:02 |
singham | always @(posedge clk) begin if foo this; else that; end | 11:02 |
singham | Above format is needed? | 11:02 |
tnt | If it was not syntactically correct, it wouldn't have built. | 11:03 |
*** ec <ec!~ec@gateway/tor-sasl/ec> has joined #yosys | 11:03 | |
jix_ | singham: If you're looking for help, I'd really recommend you try to reproduce the issue with a design that you are willing to share. | 11:04 |
singham | tnt: Alright | 11:07 |
singham | It is over 7 files. | 11:08 |
singham | How can I share it? | 11:08 |
jix_ | upload it somewhere public (e.g. github or a pastebin) and share a link | 11:11 |
singham | https://gitlab.com/x653/xv6-riscv-fpga | 11:14 |
tpb | Title: Michael Schröder / xv6-riscv-fpga · GitLab (at gitlab.com) | 11:14 |
jix_ | so this is not your own code? given that this was developed using yosys and seems to be working fine for the author, I'm fairly confident that the issue has nothing to do with what yosys and nextpnr are doing | 11:22 |
singham | That is the assumption, but since I was unable to reproduce it on my board, I'm trying to debug it. | 11:35 |
singham | You see, I'm on the 4th stage of what you're suggesting | 11:35 |
singham | jix_ and tnt Thanks folks. I will leave for now. | 11:40 |
*** singham <singham!~singham@2405:201:f:1e5a:f53d:213e:e018:d1cb> has left #yosys | 11:40 | |
*** bjorkintosh <bjorkintosh!~bjork@user/bjorkintosh> has quit IRC (Ping timeout: 276 seconds) | 13:06 | |
*** jix_ is now known as jix | 13:35 | |
*** GenTooMan <GenTooMan!~cyberman@2601:547:437f:e5c6:21f:5bff:fefe:a883> has quit IRC (Ping timeout: 260 seconds) | 14:03 | |
*** GenTooMan <GenTooMan!~cyberman@2601:547:437f:e5c6:21f:5bff:fefe:a883> has joined #yosys | 14:12 | |
*** bjorkintosh <bjorkintosh!~bjork@2600:1700:5400:c80:feee:637e:724e:9d16> has joined #yosys | 14:37 | |
*** DiffieHellman <DiffieHellman!~Username@user/curve25519chacha> has quit IRC (Ping timeout: 255 seconds) | 14:42 | |
*** DiffieHellman <DiffieHellman!~Username@user/curve25519chacha> has joined #yosys | 14:45 | |
tnt | Is there an attribute to prevent yosys from recoding a FSM ? | 14:57 |
jix | tnt: untested, just from looking at the source: (* fsm_encoding = "none" *) | 14:59 |
tnt | jix: tx ! | 15:00 |
*** so-offishul <[email protected]> has joined #yosys | 15:03 | |
*** so-offish <so-offish!~so-offish@2610:148:610:2b11::4> has quit IRC (Ping timeout: 250 seconds) | 15:07 | |
*** so-offishul <[email protected]> has quit IRC (Ping timeout: 268 seconds) | 15:08 | |
*** so-offish <[email protected]> has joined #yosys | 15:11 | |
*** so-offishul <so-offishul!~so-offish@2610:148:610:2b11::17> has joined #yosys | 15:12 | |
*** so-offish <[email protected]> has quit IRC (Ping timeout: 276 seconds) | 15:16 | |
*** adjtm <[email protected]> has joined #yosys | 16:22 | |
*** cr1901_ is now known as cr1901 | 16:29 | |
*** so-offishul <so-offishul!~so-offish@2610:148:610:2b11::17> has quit IRC (Quit: Leaving) | 16:57 | |
*** so-offish <so-offish!~so-offish@2610:148:610:2b11::17> has joined #yosys | 17:19 | |
so-offish | Sup ya'll | 18:25 |
corecode | y'all* | 20:33 |
so-offish | Sup y'all* ty | 20:53 |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:49ba:3ff7:be12:607f> has quit IRC (Read error: Connection reset by peer) | 21:51 | |
*** adjtm <[email protected]> has quit IRC (Read error: Connection reset by peer) | 21:52 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:49ba:3ff7:be12:607f> has joined #yosys | 21:52 | |
bl0x | Sup all y'all o/ | 22:05 |
so-offish | hi! | 22:11 |
so-offish | Ok, I can officially crash nextpnr reliably. I am willing to go build it from source and turn on all debug options - is there a certain build option that would provide a log for the devs or anything? (nextpnr-ecp5) | 22:12 |
*** nonchip <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 23:09 | |
*** nonchip <[email protected]> has joined #yosys | 23:09 | |
*** somlo <[email protected]> has quit IRC (Ping timeout: 260 seconds) | 23:38 | |
*** lumo_e <[email protected]> has joined #yosys | 23:40 | |
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has quit IRC (Ping timeout: 260 seconds) | 23:41 | |
*** somlo <[email protected]> has joined #yosys | 23:42 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!