Friday, 2020-06-26

*** tpb has joined #litex00:00
*** futarisIRCcloud has joined #litex00:17
futarisIRCcloudhttps://twitter.com/Claude1079/status/127584441608381235400:18
*** ambro718 has quit IRC00:51
mithroXilinx just published a copy of their Unisim library (normally found in vivado) on GitHub under an Apache 2.0 license! https://github.com/Xilinx/XilinxUnisimLibrary -- next step is to get them to run in iverilog and/or verilator01:08
tpbTitle: GitHub - Xilinx/XilinxUnisimLibrary (at github.com)01:08
benhmithro: now if only they also published a VHDL one :-)01:17
*** Degi has quit IRC01:59
*** Degi has joined #litex02:00
*** jaseg has quit IRC02:19
*** jaseg has joined #litex02:21
benh_florent_: do that ring a bell02:26
benhLiteDRAM built from Migen b1b2b29 and LiteX 28ea4b3f02:26
benhm0: |000000000000001111111111| delay: 1402:26
benhm1: |000000000000001111111111| delay: 1402:26
benhm2: |000000000001111111111111| delay: 1102:26
benhm3: |000000000011111111111111| delay: 1002:26
benh(hang)02:26
benhthis is standalone microwatt with a litedram generated for Genesys2  (with a 100Mhz sys_clk from the 200Mhz input)02:27
benhusing modified version of genesys2.yml from litedram examples02:27
*** FFY00 has quit IRC02:54
*** FFY00 has joined #litex02:54
*** scanakci has quit IRC04:23
*** CarlFK has quit IRC06:15
*** st-gourichon-fid has joined #litex06:30
_florent_benh: i probably already saw this but was not able to reproduce it easily to investigate. If you are able to easily reproduce it on the Genesys2, can you create a PR on LiteDRAM repo with the required files? i could look at this06:53
*** m4ssi has joined #litex07:33
benh_florent_: it's a user trying microwatt standalone with stuff I generated so it's a bit tricky ... there are other weird problems though, some of the stuff the code displays makes no sense (some of my stuff, like it reads some internal config register I have on my wishbone and that seems to return 0 ... but it's hard wired via a generic to some other value and the vivado logs seem to indicate the generic was bound properly ... so a mystery at this point :)07:50
benh_florent_: might be worth asking him to try with LiteX I suppose ...07:51
benhthe main difference I noticed is that standalone litedram generates a PLL while LiteX generates an MMCM, the formers has unused "dq" clock outputs but I don't see why any of htat would be a problem (I double checked the configs, they seem fine)07:51
benhoh and LiteX runs at 125Mhz on the genesys while I run at 100 at the moment07:52
benhbut I don't have a board to test and investigate myself so ...07:52
benhoh... he didn't wire the cs_n pins of the DRAM in his toplevel ...07:52
benh_florent_: btw, on a different note, you know about FPGAs... :-)08:02
benh_florent_: in microwatt, for historical reasons, we define our wishbones with address bits all the way down to 0 such as the bottom bits are "byte address" and are unused... ie on a 32-bit wishbone we have 2 unused bottom bits and on a 64-bit one, 308:03
_florent_benh: ok for the issue on the Genesys2, just in case there is an easy repro, i have this board so could help08:03
benh_florent_: I've been meaning to clean that up for a while ... so I just did (effectively made all the arrays be N downto 2 or N downto 3)08:03
benhand reduced various latches accordingly08:03
benhand the end result after going through vivado is increased LUT and register utilization08:03
benhcan you think of any reason for this ?08:04
benh_florent_: ok thanks. I'll have him try LiteX first and fix a few things in his toplevel08:04
benh_florent_: and if we don't get to the bottom of it, I'll merge his stuff in a branch you can try out if you feel like messing around with standalone mw :)08:04
_florent_benh: in fact that's probably better to use byte addressing on any buses, this makes integration a lot easier and avoid errors/confusions. The wishbone bus in LiteX uses word addressing for historical reason, but i'm no longer sure it was a good choice08:08
_florent_benh: that's indeed sometimes difficult to relate logic changes with Vivado's Luts/Register utilization. Very subtles changes can allow it/prevent it to/from optimizing things, the log would need to be carefully analyzed08:14
benh_florent_: thanks. The logs aren't always that clear but yes ... I think I'll leave it as it was then08:21
benhit does make the decoders easier and more readable indeed :)08:22
*** ambro718 has joined #litex10:09
*** ambro718 has quit IRC10:47
*** Skip has joined #litex13:34
jasegI'm playing around with litex (master) and its vivado backend for artix 7 and vivado fairly frequently crashes ("abnormal program termination" or outright segfaults). Is this expected behavior or is my vivado setup b0rked?14:15
jasegSimply re-running the same command usually works though.14:17
*** ambro718 has joined #litex15:31
*** CarlFK has joined #litex16:02
CarlFKhttps://www.ledonlinesale.com/product/colorlight-receiving-card-5a-75b  $20ish.16:04
tpbTitle: Colorlight Receiving Card 5A-75B - LED Online Sale (at www.ledonlinesale.com)16:04
CarlFKcould that drive an LCD over LVDS?  (and if so, how about 3 or 4?  I think there is enough IO pins16:05
_florent_jaseg: the issue seems related to your machine or setup, that's not the expected behaviour16:13
_florent_CarlFK: the colorlight is reversed and supported in LiteX: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/colorlight_5a_75x.py16:15
tpbTitle: litex-boards/colorlight_5a_75x.py at master · litex-hub/litex-boards · GitHub (at github.com)16:15
_florent_@mubes in 1BitSquared#fpga seems to be interesting things with it and LiteX: https://photos.app.goo.gl/ca3tsvYshqLYDPDN616:16
*** CarlFK has quit IRC16:23
*** CarlFK has joined #litex17:05
CarlFK_florent_: @mubes in 1BitSquared#fpga seems to be interesting things with it and LiteX: https://photos.app.goo.gl/ca3tsvYshqLYDPDN618:12
CarlFKWhat I am fishing for is using the colorlight board to drive lcd panels like this does https://www.aliexpress.com/item/32955803742.html18:13
tpbTitle: PCB800661 Single HDMI Drive Board HDMI to LVDS Adapter Board LCD Screen Drive Plate 7 Inch 42 Inch|Air Conditioner Parts| - AliExpress (at www.aliexpress.com)18:13
*** [Matt] has quit IRC18:14
lfCarlFK: i am new to this. but i would say driveing the lvds display should be possoble, but you might need to remove the 5v buffer and add voltage divider to match 3.3 to 1.8V18:18
lfwhat is the image source HDMI or ethernet?18:22
CarlFK[m]Eathernet.  Or rendered by the fpga based on something coming in over ethernet18:29
CarlFK[m]Afk for a while18:30
lfCarlFK: https://twitter.com/Claude1079/status/1232574333308022785 somewhat releated18:30
lfthe thread has some infos releated to lvds18:30
*** [Matt] has joined #litex18:44
*** satnav has joined #litex19:08
satnavhello everyone,  Can someone please suggest me any documentation or tutorial with how to build simple SoC and documentation about the different modules in LiteX? Thanks in advance!19:10
zypyou might want to start out with https://github.com/enjoy-digital/litex/wiki19:15
tpbTitle: Home · enjoy-digital/litex Wiki · GitHub (at github.com)19:15
satnavI visited there but most of the topics there are empty / TBD.19:17
CarlFKsatnav:  this might be a good place to start,  https://workshop.fomu.im/en/latest19:17
tpbTitle: FPGA Tomu Workshop FPGA Tomu (Fomu) Workshop 0.1-192-ga639335 documentation (at workshop.fomu.im)19:17
satnavthanks zyp and CarlFK!19:18
zypwhich board do you have? I personally found the easiest way to be building an existing example for a board I had and then pick it apart to figure out how stuff fit together19:21
satnavI have platform with Lattice ICE40HX1K. it kind of like the "icebreaker" platform.19:25
zypicestick?19:27
satnavGo board from nandland19:28
zypah19:29
satnavI wonder if ICE40HX1K has enough logic to contain RISC-V soft-core (like SERV) and UART. it has 1K LUTs. do you have any experience with ICE40HX1K and LiteX?19:31
zypI've used litex on the icestick, but without a cpu, haven't checked whether SERV would fit19:32
zypgonna give it a try :)19:34
satnavnice :)19:34
satnavzyp Do you have the code with LiteX on icestick in GitHub? It will be great to see it19:36
zypno, it's just a pile of mess :)19:42
zypI'll upload the serv stuff if I can get it to work19:42
satnavkeep update :)19:43
zypokay, problem 1 is that hx1k only have 8kB of block ram in total, litex bios as it builds requires more20:06
zypbut building without that, it works :)20:08
*** satnav has quit IRC20:08
zyphttps://paste.jvnv.net/view/VaLWq https://paste.jvnv.net/view/aLshV20:13
tpbTitle: JVnV Pastebin View paste – Untitled (at paste.jvnv.net)20:13
zypyou can remove the «import deps», that's just some stuff I've got to set up the pythonpath20:14
zypwith --no-compile-software, it builds here, 76% utilization of a hx1k20:15
zypand then you just need to figure out how to load some software into it :)20:16
*** satnav has joined #litex20:16
satnavnice zyp! thanks!20:17
zypSoCCore has an argument called integrated_rom_init, so I guess you could just provide the firmware image there20:18
zyp_florent_ has been talking about making it easier to boot directly into other software than the litex bios, but I'm not sure what the current status of that is20:20
*** ambro718 has quit IRC20:30
*** st-gourichon-fid has quit IRC21:33
*** m4ssi has quit IRC21:39
satnavzyp, can you please tell me what the purpose of CRG module that you have here? https://paste.jvnv.net/view/VaLWq22:40
tpbTitle: JVnV Pastebin View paste – Untitled (at paste.jvnv.net)22:40
zypto instance the PLL to make a 48 MHz clock from the 12 MHz clock input on the icestick22:42
zypI were experimenting with usb on it, so I needed a 48 MHz clock :)22:43
*** Skip has quit IRC22:45
satnavthanks (y)22:45
*** satnav has quit IRC23:02
*** lf has quit IRC23:07
*** lf has joined #litex23:07

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