Tuesday, 2020-08-11

*** tpb has joined #litex00:00
*** Degi has quit IRC00:28
*** Degi_ has joined #litex00:28
*** Degi_ is now known as Degi00:28
*** avg has joined #litex00:44
avgsajattack[m] What are you doing about RAM? Will be external?00:45
sajattack[m]in my testing I just gave it a 1k sram00:51
sajattack[m]but you could do an external sdram or something for sure00:52
sajattack[m]I was able to compile vexriscv minimal into an asic outside of litex00:53
* sajattack[m] uploaded an image: 2020-08-10-180151_570x540_scrot.png (138KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/QytCMUkglTMsCqtASPDLnptI >01:02
sajattack[m]I'm not sure if it's a problem with litex or my naive approach to modifying the build script01:05
*** avg has quit IRC01:48
*** jaseg has quit IRC02:42
*** jaseg has joined #litex02:44
*** mntmn has quit IRC03:04
*** daddesio has quit IRC03:04
*** mntmn has joined #litex03:06
*** daddesio has joined #litex03:08
*** davidcorrigan714 has quit IRC03:09
*** _whitelogger has quit IRC03:54
*** _whitelogger has joined #litex03:56
*** avg has joined #litex04:53
*** kgugala_ has joined #litex04:58
*** kgugala has quit IRC05:00
futarisIRCcloudconmega: Which JTAG adapter are you using for the Acorn CLE-215+ ?05:34
zypfutarisIRCcloud, you didn't ask me, but I'm just using a generic ft232h breakout05:56
*** avg has quit IRC06:34
*** kgugala_ has quit IRC07:06
*** kgugala has joined #litex07:07
*** proteusguy has quit IRC08:03
*** somlo has quit IRC08:04
*** somlo has joined #litex08:15
*** CarlFK has joined #litex08:39
*** kgugala_ has joined #litex08:45
*** kgugala has quit IRC08:48
*** kgugala has joined #litex08:59
*** kgugala_ has quit IRC09:02
*** kgugala_ has joined #litex09:07
*** kgugala has quit IRC09:10
*** kgugala has joined #litex09:19
*** kgugala_ has quit IRC09:23
*** st-gourichon-fid has quit IRC09:38
*** kgugala_ has joined #litex10:17
*** kgugala has quit IRC10:17
disasm[m]<sajattack[m] "in my testing I just gave it a 1"> How about https://github.com/VLSIDA/OpenRAM ?12:20
tpbTitle: GitHub - VLSIDA/OpenRAM: An open-source static random access memory (SRAM) compiler. (at github.com)12:20
disasm[m]I'm not sure it's easily embeddable in current flows, but anyway12:21
*** proteusguy has joined #litex14:29
sajattack[m]It's not ready yet16:56
*** m4ssi has joined #litex17:27
conmegafutarisIRCcloud: I am using a clone J-link at the moment. I only happen to have an FT232R breakout kicking around right now and it doesn't even have all the pins broken out. So I need to order some things. Wasn't really a complaint as more of an observasion on my end :)17:51
conmegaActually, just happened across an amontec jtagkey on eBay for a good price, so grabbed that. FT232H with level shifting from 5V down to 1.4V so that will be nice.18:02
*** m4ssi has quit IRC18:17
*** lkcl has joined #litex19:40
lkclhi all, have been setting up libresoc to run under litex.  sim works, am just setting up on a versa-ecp5 (LFE5UM)19:41
lkclas this is a "first iteration ever" i am identifying areas that need improvement19:41
lkclhowever i would like to "just get it to work for now"19:41
lkclcurrently there's a 37ns routing loop which limits the top clock frequency that this can run at to around 27 mhz19:42
lkclmy question therefore is: how can i set the frequency of the design clock to run at say... 16 mhz?19:43
lkclor 75/4=18.75 for example19:43
*** tannewt has joined #litex19:43
lkclis it as simple as adding "--sys-clk-freq=18.75e6" to the BaseSoC parameters?19:43
daveshahpassing it on the command line should work, yeah19:45
daveshahI don't know if you need the '=' though, I always use a space19:45
lkcldaveshah: ok ta19:47
lkclstarted building @ 16e6, i'll let it run19:47
* lkcl waves to daveshah20:16
daveshahhi!20:17
lkcl8mhz clock rate initialisation of versa-ecp5 dram: not quite working, there.20:17
lkclalso, whilst that's an 8mhz clock rate, it's actually a FSM at the moment20:18
daveshahYou could see if it works with picorv32 at that rate20:18
lkclso the actual instruction rate is... 1/8th of that20:18
lkclah good idea20:18
lkcli'd have to bring it down to around 2mhz to be "on par"20:18
daveshahMy guess is it is the DRAM interface clock, not the CPU IPS, that is the problem20:18
daveshahUnfortunately, that is fixed at 2x the system clock and not easily changeable20:19
lkclahh ok20:19
lkcloh yes, i noticed that20:19
lkclwell... i could put a "fake" PLL (digital counter/divider) in20:19
daveshahIt might be possible to use a faster processor to do DRAM init20:19
daveshahAnd then provide another AXI port or whatever that you CDC to your slow CPU under test20:20
lkcli'm leaning towards a manual clock-counter (in nmigen).  leave the main clock at 75mhz and fire the cpu clock using a DomainRenamer()20:21
*** avg has joined #litex20:21
lkclpicorv32 memtest @ 16mhz...20:22
lkcl- bus errors:  98/25620:22
lkcl- addr errors: 7717/819220:22
lkcl- data errors: 520871/52428820:22
* lkcl trying 20mhz20:22
lkcltrying with picorv32 is a good idea, it's quite quick to build (a lot faster than libresoc, which is approaching the max LUTs of 45k)20:23
avgsajattack[m] Did you see the Skywater slack? http://join.skywater.tools/20:24
tpbTitle: Request invite to the skywater-pdk Slack! (at join.skywater.tools)20:24
lkclSDRAM:          131072KiB 16-bit @ 80MHz20:24
lkclMemtest at 0x40000000...20:24
lkcl[########################################]20:24
lkcl[########################################]20:24
lkcl- bus errors:  74/25620:24
lkcl- addr errors: 7639/819220:24
lkcl- data errors: 475365/52428820:24
sajattack[m]avg: yup I've been asking questions and chatting there20:26
lkcl120 mhz DRAM: also fail :)20:27
daveshahHuh, maybe something has broken20:30
daveshahDoes the default 75MHz system clock work?20:30
lkcldaveshah: yes, 75mhz is fine20:31
lkcltried 40mhz clock (160mhz SDRAM), fail too20:31
lkcl48mhz (192mhz SDRAM) _also_ fail.  urk20:33
lkclthe average DDR3 IC _should_ work fine at around 200 mhz....20:34
daveshahThe DDR3 clock is only 100MHz20:35
daveshahlitex is incorrectly reporting the transfer rate not the frequency20:36
lkclah20:36
lkclSDRAM:          131072KiB 16-bit @ 300MHz20:36
daveshahlitex disables DLL so low frequencies should be fine20:36
lkclCPU:            PicoRV32 @ 75MHz20:36
daveshahThe problem is probably the various latency magic numbers in the PHY aren't right at such a  low frequency20:36
daveshahOr, the problem is in the ECP5 IO logic20:37
lkclwell, i'm going to cheat and do a manual clock which halves the frequency20:38
lkclnuts.20:38
lkcli need to 1/4 the frequency, don't i? :)20:38
lkclso that's a counter up to 8 (3 bits), test the top bit == true, that's the "clock" to send over the DomainRenamer() new clock domain20:39
*** m4ssi has joined #litex20:45
*** m4ssi has quit IRC20:53
lkclah doh i need something a bit more sophisticated than a part-hack21:04
lkcli need to do a level of indirection, add *another* DomainRenamer, sigh.21:11
lkcldaveshah: is there any other PLL that i could use to run things from, on the versa_ecp5, do you know?21:12
daveshahYes there are three PLLs and LiteX should only use one of them21:15
zypthree?21:15
lkclokaay.  so hypothetically i could indeed do a separate sys clock running from that21:17
lkclcall it "core clock" or something21:17
lkclhowever.... mm.... interacting with the wishbone bus is going to get interesting21:18
*** awordnot has quit IRC22:05
*** awordnot has joined #litex22:05
*** avg has quit IRC22:13
*** lf has quit IRC23:13
*** lf has joined #litex23:14

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