Wednesday, 2023-08-30

*** tpb <[email protected]> has joined #litex00:00
MoeIcenowy_florent_: I cannot imagine the adjust is so simple00:59
MoeIcenowyMy own lead to get the read latency -= 1 change (because there is RBURST (BURSTDET called by Lattice)), however for the write latency -= 1 I didn't find it (because I have no knowledge about the internal of LiteDRAM)01:00
MoeIcenowynickoe: not possible w/o proper primitives from Gowin01:03
MoeIcenowya primitive called GW_JTAG is known to exist in prim_syn.v in Gowin toolchain01:05
MoeIcenowybut not documented at all01:05
MoeIcenowyand GAO is surely encrypted01:06
*** Degi <[email protected]> has quit IRC (Ping timeout: 246 seconds)01:23
*** Degi <[email protected]> has joined #litex01:23
*** nickoe <nickoe!~nickoe@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)01:36
*** nickoe <nickoe!~nickoe@2a06:4004:21c3::cf9> has joined #litex01:37
*** nickoe <nickoe!~nickoe@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)03:14
*** nickoe <nickoe!~nickoe@2a06:4004:21c3::cf9> has joined #litex03:14
*** somlo <[email protected]> has quit IRC (Remote host closed the connection)04:15
*** somlo <[email protected]> has joined #litex04:15
*** nickoe <nickoe!~nickoe@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)04:25
*** nickoe <nickoe!~nickoe@2a06:4004:21c3::cf9> has joined #litex04:25
sensilleHoernchen: the patch is only for the eth_clock. 30mhz is awfully low, where is the critical path?05:22
*** FabM <FabM!~FabM@2a03:d604:103:600:2e60:8c7c:e8fb:7990> has joined #litex05:40
Hoernchensensille, https://dpaste.org/BrVRK - apparently to a dpram? this is the unmodified "colorlite"07:53
tpbTitle: dpaste/BrVRK (Console/Bash Session) (at dpaste.org)07:53
sensille23ns routing, that is a long path07:55
Hoernchenthere are apparently some false paths that can be ignored - just, uh, knowing which ones are the false path is the problem07:56
sensilledo you need etherbone for your project?07:57
Hoerncheni might, i didn't really plan to use a cpu, so it looks like the most obvious way to just have a bus07:57
Hoernchenbut i'm currently just trying to figure out what works and what doesn't work07:58
sensillehttps://dpaste.org/0jxuo08:02
tpbTitle: dpaste/0jxuo (Plain Text) (at dpaste.org)08:02
sensillecolorlite.py --build08:02
sensille(with 30mhz clock target)08:03
sensillehow do you call it?08:03
Hoernchenliterally like that08:04
sensillewith 50mhz: https://dpaste.org/q8Nq308:05
tpbTitle: dpaste/q8Nq3 (Plain Text) (at dpaste.org)08:05
sensilleeth clk is hit and miss08:05
Hoernchencan you ever got to 50?08:06
Hoernchenget08:06
sensillediamond can get to 50, but fails in the eth path. my patch might help there08:15
sensillebut 40 should be enough?08:16
Hoerncheni guess so08:16
Hoerncheni'm just wondering if there ever was a way to hit those default frequencies08:17
sensilleno luck with abc9/flow3 either08:21
Hoernchenyeah i'm currently trying some of those magic ravenslofty cookbook incantations08:24
sensillei don't feel well running a design with failed timings either08:25
*** nickoe <nickoe!~nickoe@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)08:35
*** nickoe <nickoe!~nickoe@2a06:4004:21c3::cf9> has joined #litex08:35
*** nickoe67 <nickoe67!~nickoe@2a06:4004:21c3::cf9> has joined #litex08:42
*** nickoe <nickoe!~nickoe@2a06:4004:21c3::cf9> has quit IRC (Ping timeout: 246 seconds)08:45
*** cr1901__ <cr1901__!~cr1901@2601:8d:8600:226:ed76:a534:a2e2:6a1c> has joined #litex10:16
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:226:c051:a10a:e0b1:d641> has quit IRC (Ping timeout: 246 seconds)10:19
*** nickoe29 <nickoe29!~nickoe67@2a06:4004:21c3::cf9> has joined #litex11:24
*** nickoe67 <nickoe67!~nickoe@2a06:4004:21c3::cf9> has quit IRC (Ping timeout: 246 seconds)11:27
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:226:64cf:f709:2b77:9e1f> has joined #litex11:36
*** cr1901__ <cr1901__!~cr1901@2601:8d:8600:226:ed76:a534:a2e2:6a1c> has quit IRC (Ping timeout: 244 seconds)11:39
*** nickoe57 <nickoe57!~nickoe29@2a06:4004:21c3::cf9> has joined #litex12:01
*** nickoe29 <nickoe29!~nickoe67@2a06:4004:21c3::cf9> has quit IRC (Ping timeout: 246 seconds)12:05
*** nickoe51 <nickoe51!~nickoe57@2a06:4004:21c3::cf9> has joined #litex13:24
*** nickoe57 <nickoe57!~nickoe29@2a06:4004:21c3::cf9> has quit IRC (Ping timeout: 246 seconds)13:28
*** cr1901__ <cr1901__!~cr1901@2601:8d:8600:226:cc7:c2a0:88f9:c9d3> has joined #litex14:19
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:226:64cf:f709:2b77:9e1f> has quit IRC (Ping timeout: 245 seconds)14:23
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has quit IRC (Ping timeout: 246 seconds)14:29
*** fts-tmassey <[email protected]> has joined #litex14:42
fts-tmasseyHello!  I'm having trouble with linux-on-litex-vexriscv and a Terasic de0nano.  I've downloaded to the board, I get the side-to-side LED's, but I can't communicate with it.14:43
fts-tmasseyI think it's because I need to connect to a UART via the GPIO header pins, but I don't know what pins to use!  I'm happy to answer any questions I can, of course.14:44
fts-tmasseyI'm running on Debian Bookworm, with a Terasic de0-nano.  Quartus 22.1free.  I'm happy to provide parameters, logs, timings, etc. but you would have to help me to find these...  I basically followed the bouncing ball from the readme.14:47
*** jevinskie[m] <jevinskie[m]!jevinskie@2a01:4f8:c012:5b7:0:1:0:22> has joined #litex14:48
jevinskie[m]<MoeIcenowy> "and GAO is surely encrypted" <- I’d bet we can get around that little road bump if that’s what is necessary for figuring out the primitive/enabling litejtag. ;)14:48
fts-tmasseyI have also successfully used Quartus to download a quick procedure from the Terasic manual.  Seeing as I see the LED's moving like I've seen in other tutorials, it seems I've successfully downloaded the FPGA code.  The problem is, I can't connect to the serial interface to download the Linux kernel, etc.14:48
*** cr1901__ is now known as cr190115:08
*** nickoe51 <nickoe51!~nickoe57@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)15:28
*** nickoe51 <nickoe51!~nickoe51@2a06:4004:21c3::cf9> has joined #litex15:28
fts-tmasseyHere is an issue I've created with more details:  https://github.com/litex-hub/linux-on-litex-vexriscv/issues/34815:52
fts-tmasseyThank you for any help you might be able to provide!15:52
*** so-offish <so-offish!~so-offish@2610:148:610:2b10::87> has joined #litex16:20
josuahhello fts-tmassey!16:34
josuahI'm not tinkering with linux-on-litex-vexriscv but with zephyr-on-litex-vexriscv (different devboard), but close enough :)16:35
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has joined #litex16:57
jevinskie[m]For de0-nano try adapting this DECA board config that uses the onboard usb blaster 2 https://github.com/litex-hub/litex-boards/blob/master/litex_boards/prog/openocd_max10_blaster2.cfg17:08
*** matb4[m] <matb4[m]!matb4matri@2a01:4f8:c012:5b7:0:1:0:106> has quit IRC (Quit: Idle timeout reached: 172800s)17:39
josuah_florent_: I will try this :) https://github.com/enjoy-digital/litex/wiki/Export-Your-Core-SoC-To-Verilog17:58
josuahDid you have any plan for it?17:58
josuahI thought about a board definition with a "null platform" of some kind that does not invoke any platform-specific primitive17:59
josuahthe top-level of LiteX would become a module in the user's design, with the bus exposed17:59
josuahoh, I did not look, maybe that's already there in LiteX!18:01
josuah_florent_: thank you for the merges by the way!18:16
josuahWe can work with a fork periodically synced with upstream for a long while, no pressure to merge anything :)18:17
whitequark[cis]<MoeIcenowy> "and GAO is surely encrypted" <- what's GAO?18:44
whitequark[cis]oh, Gowin Analyzer Oscilloscope IP?18:45
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 240 seconds)18:45
whitequark[cis]the use of GW_JTAG looks very straightforward to me, it's almost the same as the Xilinx one18:48
whitequark[cis]btw the private keys to decrypt the Gowin IP are listed in plaintext, grep for "-----BEGIN RSA PRIVATE KEY-----"18:50
whitequark[cis]if you wanna look at GAO IP write a few lines of openssl :p18:52
*** nickoe51 <nickoe51!~nickoe51@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)19:37
*** nickoe51 <nickoe51!~nickoe51@2a06:4004:21c3::cf9> has joined #litex19:37
*** nickoe51 <nickoe51!~nickoe51@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)20:08
*** nickoe51 <nickoe51!~nickoe51@2a06:4004:21c3::cf9> has joined #litex20:09
josuahhttps://panoramix-labs.fr/brilliant-labs/gowin-logic-analyzer/20:13
josuahwhitequark[cis]: maybe they had bug when turning encryption off :D20:14
*** nickoe51 <nickoe51!~nickoe51@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)20:19
*** nickoe51 <nickoe51!~nickoe51@2a06:4004:21c3::cf9> has joined #litex20:19
whitequark[cis]no it's just the implementation is like that20:23
whitequark[cis]they're in the gwsyn.so library20:23
josuahone would have to be in a country where reverse engineering allows as far as decrypting IPs to understand how the hardware works...20:36
josuaheven if the IP content is not included directly20:36
josuahnot sure how this all works to be honest.20:36
gurkiwhitequark[cis]: thats hilarious, thanks for mentioning this :D20:37
whitequark[cis]you just decrypt the IP and get done with it20:38
whitequark[cis]don't tell me you've never pirated a movie either20:38
whitequark[cis]it's no one's business what you do in the privacy of your own computer20:39
josuahyes, but I did not write a novel out of the scenario of a pirated movie either20:39
josuahif something needs to be integrated with open-source project for instance20:39
gurkiwhitequark[cis]: im laughing about the plaintext key, not you doing whatever you do with it20:40
whitequark[cis]yeah i was responding to josuah20:40
gurkiah :)20:40
josuahthe question is about how to face a lawyer if that had to happen20:41
josuahoh, nevermind20:41
josuahif someone of the size of i.e. intel, nvidia wants me legally down, they probably do not need me to be actually stealing anything ^_^'20:41
whitequark[cis]power does as power wants20:42
whitequark[cis]though, i have once got a c&d from xilinx, and i'm still alive20:42
josuah\o/ kudos on being alive, I mean it20:42
whitequark[cis]you don't actually need to tell anyone where you know how to use GW_JTAG from20:44
Hoernchensomeone decrypts it and describes it, someone else implements it according to the docs20:44
whitequark[cis]or you can always do a parallel construction, exactly the same thing as the state does when it doesn't want to give up sources of evidence20:44
whitequark[cis]get it from RE, and then pretend you got it from very inspired experimentation20:44
whitequark[cis]Hoernchen: I think this might not work in this particular case20:45
whitequark[cis]since the person decrypting is still liable20:45
Hoernchenin this particular case the "thing" is... not particularly unique or exciting, it should be reasonably easy20:45
whitequark[cis]I mean20:45
josuahI just understood all the 4chan leaks... someone needs it, someone "else" publishes it, it's out, grab it :S20:45
whitequark[cis]I looked at GW_JTAG, I could describe it without any RE work20:45
Hoernchenah yes but: who is that person? imagine docs showing up somewhere...20:45
gurkijosuah: its a very, very (...) very complex topic with a lot of strong oppinions20:46
whitequark[cis]I can trivially break Gowin encryption too but it's not enough of a challenge to bother20:46
josuahgurki: sorry for opening the lid20:46
gurkifor me personally its a minefield im not touching with a long stick20:46
Hoernchenthe way it should not be done is the ham guys and their "reversed" ambe codec which is pretty much the dsp code decompiled and translated into c after running in the emulator..20:48
Hoernchenthat is just tainted beyond repair20:48
whitequark[cis]as someone who thinks almost all IP should not exist I can only admire the degree of commitment there20:50
Hoernchenambe is a major issue, it prevents open source DMR because you're supposed to buy a physical chip to use it20:52
whitequark[cis]yeah, I know about ambe20:52
Hoernchenand i'm still trying to forget all the things i never saw while not looking at the nice lattice diamond text f.. uh.. binary blobs20:56
whitequark[cis]i thought diamond ships ip as netlists?21:03
whitequark[cis]and whatever the hell is that cursed simulation format21:03
Hoernchenoh not the ip21:05
Hoernchenthe part and bit descriptions21:05
Hoernchenlong, long chains of boolean equations that tell you which bit does what21:06
Hoernchenthe lattice ip that is used by sinplify was rsa bsafe protected at the time, so.. slightly more difficult than grepping for the key21:06
Hoerncheni.e. the tri speed ethernet mac21:07
whitequark[cis]ahhhh22:12
Hoernchenjust found one of those pretty ascii tile maps22:13
Hoernchenalld of that was such a long time ago.. 2012 or something like that22:13
*** Flea86 <Flea86!~maomao@user/Flea86> has quit IRC (Ping timeout: 246 seconds)22:21
*** nickoe51 <nickoe51!~nickoe51@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)22:23
*** nickoe51 <nickoe51!~nickoe51@2a06:4004:21c3::cf9> has joined #litex22:24
*** sakman_ is now known as sakman22:48
*** lkcl <[email protected]> has quit IRC (Ping timeout: 246 seconds)22:50
*** lkcl <[email protected]> has joined #litex23:04
*** sakman_ <[email protected]> has joined #litex23:19
*** sakman <[email protected]> has quit IRC (Ping timeout: 246 seconds)23:21
*** so-offish <so-offish!~so-offish@2610:148:610:2b10::87> has quit IRC (Ping timeout: 248 seconds)23:41

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