*** tpb <[email protected]> has joined #litex | 00:00 | |
*** Degi_ <[email protected]> has joined #litex | 00:15 | |
*** Degi <[email protected]> has quit IRC (Ping timeout: 248 seconds) | 00:16 | |
*** Degi_ is now known as Degi | 00:16 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:8f0:1126:c554:e441> has quit IRC (Read error: Connection reset by peer) | 00:54 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:106d:bc6:217c:5eb7> has joined #litex | 00:56 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:106d:bc6:217c:5eb7> has quit IRC (Remote host closed the connection) | 01:05 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:106d:bc6:217c:5eb7> has joined #litex | 01:05 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:106d:bc6:217c:5eb7> has quit IRC (Remote host closed the connection) | 01:45 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:106d:bc6:217c:5eb7> has joined #litex | 01:45 | |
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 06:24 | |
*** TMM_ <[email protected]> has joined #litex | 06:25 | |
_florent_ | tnt, swetland: In fact I think we all agree regarding Linux on FPGA, it's clearly overkill, but can also be so convenient compared to other solutions that it's sometimes the preferred solution (at least for developments/experiments before switching to a lighter OS). So that's still useful to have it in our toolbox :) | 06:57 |
---|---|---|
*** FabM <[email protected]> has joined #litex | 07:03 | |
*** davebee <[email protected]> has joined #litex | 09:22 | |
davebee | I'm trying to use uartbone to debug a vexriscv. It only partly works. I can breakpoint, but not continue or step. Is there any way to diagnose the problem? I could looks at the UART traffic in a logic analyser, but I don't know what I'm looking for. Sometimes the uart traffic stops and I have to restart litex_server and openocd. | 10:13 |
davebee | I can manually step over software breakpoints using "(gdb) set $pc = $pc + 4" | 10:18 |
*** lexano <[email protected]> has quit IRC (Ping timeout: 250 seconds) | 13:38 | |
*** lexano <[email protected]> has joined #litex | 13:51 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:106d:bc6:217c:5eb7> has quit IRC (Remote host closed the connection) | 13:52 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:106d:bc6:217c:5eb7> has joined #litex | 13:52 | |
*** leons <leons!~leons@2001:470:69fc:105::abc> has joined #litex | 14:27 | |
leons | Ah, finally getting back to some LiteX work :) | 14:33 |
leons | I've been wanting to update the LiteX package definitions for Nix, but noticed that the video core downloads a file while building the SoC (soc/cores/video.py downloads ter-u16b.txt) | 14:35 |
leons | Because these builds are executed in a Sandbox they don't have internet access | 14:35 |
leons | _florent_: I can hack around this and hot-patch my packaged LiteX version to use a pre-downloaded file, or can we perhaps just include this in the repo given it's not too big and plain ASCII? | 14:36 |
tpw_rules | leons: hi | 14:47 |
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving) | 14:48 | |
*** lexano <[email protected]> has quit IRC (Ping timeout: 246 seconds) | 14:58 | |
*** lexano <[email protected]> has joined #litex | 15:22 | |
leons | tpw_rules: hi! | 15:28 |
*** lexano <[email protected]> has quit IRC (Ping timeout: 276 seconds) | 15:39 | |
*** davebee <[email protected]> has quit IRC (Quit: Leaving) | 15:49 | |
*** lexano <[email protected]> has joined #litex | 16:21 | |
*** NotHet <[email protected]> has joined #litex | 16:22 | |
tpw_rules | let me know when you get your updates done, i'll fix up the scala stuff | 16:26 |
swetland | Crazy question: has there been thought to providing ways to help keep registers, etc, from shifting around as litex evolves? | 16:29 |
swetland | For things built entirely within the Litex framework and build system or using that as source of truth it might not matter much that registers, CSR bases, etc, can easily move around -- just use generated headers. | 16:30 |
swetland | Integration with larger systems, upstream emulators (Qemu, etc) is trickier though. | 16:30 |
tnt | yeah, you can fix the 'base' of each top level block, but anything under those can't be manually controller AFAIK. | 16:34 |
tnt | (which I also find annoying for exactly those reasons ... ) | 16:34 |
NotHet | Is it a correct statement that the LiteSPIMMAP handles reads, and that writes supposed to be issued through the LiteSPIMaster CSRs? | 16:36 |
NotHet | ie reads are memory backed but writes are more of a programmed io | 16:36 |
*** NotHet <[email protected]> has quit IRC (Remote host closed the connection) | 17:03 | |
_florent_ | swetland: As tnt said, it's possible to fix the mapping of each module, but not yet the mapping of CSRs inside a module. I also want to add this since often have to workaround it... | 17:06 |
_florent_ | mithro: I not necessarily agree with what you said on twitter (ie only have automatic mapping generation), this is clearly un-wanted for some systems. | 17:08 |
_florent_ | on some systems that are built with LiteX and using fixed mapping, this enables compatibility between different boards and also software compatibility (and the LiteX has quite evolved since the project are > 8 years old and have regular updates) | 17:10 |
_florent_ | so I think we need both: good fully automated support + config export and fixed mapping | 17:10 |
mithro | _florent_: I think there are is a bunch of compelling reasons that my approach isn't always the best | 17:10 |
mithro | _florent_: As I mentioned, I would say that most people disagree with my idea that we should make the register layout *more* random which is why I haven't logged an issue and sent a pull request to do that. | 17:11 |
_florent_ | swetland, tnt: BTW the issue for CSR mapping is this one https://github.com/enjoy-digital/litex/issues/548 | 17:12 |
_florent_ | mithro: I think we just need both, it really depends of the usecase | 17:13 |
*** lexano <[email protected]> has quit IRC (Ping timeout: 256 seconds) | 17:14 | |
_florent_ | mithro: If you have a small team and the team creates the gateware + software and the software can accept a config file, fully automatic generation can be useful | 17:15 |
_florent_ | as we are doing for the Linux system or Zephyr for example, where this gives some flexibility | 17:15 |
mithro | _florent_: Yeah, I can understand that -- My only concern is that static layout of stuff is so dangerously seductive that people who shouldn't be using it will end up doing so. | 17:15 |
_florent_ | but for deployed systems, were you need retro-compatibility and want fine control on your register map, this can be problematic | 17:16 |
_florent_ | mithro: we should probably document things better and describes the pros & cons of each approach | 17:17 |
_florent_ | as we can see with swetland/tnt's feedbacks, not being able to have fully static layout is annoying for developers used to more traditional approaches | 17:19 |
swetland | as I said on twitter (sorry about the permissions on that thread, locked things down for some political chatter and forgot to open them back up again), I'm a bit less concerned about base addresses moving around than the idea that there's no way to keep your registers from renumbering if you rearrange your source HDL | 17:19 |
swetland | I think it depends on your project and goals. for things that are entirely self-contained driving everything from the HDL as a source of truth makes sense | 17:20 |
_florent_ | swetland: sure, I understand, I want to also fix this (see #548) | 17:20 |
swetland | but if you're going to be building a product where others may supply the software, where you may support it across multiple generations and want to provide backward compatibility so you don't have to rebuild the world on a bugfix, etc, having a way to keep things consistent from version to version is valuable | 17:21 |
mithro | swetland / _florent_: I would love us to figure out an efficiently way to make the system more self describing but understand that is still a rather unsolved problem | 17:21 |
swetland | I think that's hard to do reliably when you get down to the individual register level -- at some point you're building an interface and it'd be nice to (if one desires) have tooling to support maintaining that interface | 17:22 |
tnt | Also while I'm at it, a way to specify a name different than the auto generated one would be nice. | 17:22 |
_florent_ | swetland: I could spend more time looking at this, I generally have a tendency to accommodate myself to limitations until someone else also complains :) | 17:22 |
tnt | Like, sometimes the HDL needs to be structured a certain way and that yields insane #define names for the CSRs ... | 17:22 |
swetland | because building software that has to go through an elaborate abstraction to figure out where the bits are is not very efficient or sustainable | 17:22 |
_florent_ | swetland/tnt: If you have ideas on this, can you eventually fill them in #548? | 17:22 |
swetland | florent: I don't have an urgent need for this, so no worries, but yes, will think on it and provide some feedback | 17:23 |
_florent_ | swetland: great thanks, I don't think this require that much efforts to implement | 17:24 |
_florent_ | tnt: we could also try to add fixed name support yes | 17:24 |
swetland | it really depends how elaborate you want to go. also, I'm not super-familiar with all the migen/litex internals so I might not have a good idea what's easy or hard | 17:24 |
mithro | tnt / swetland: I think there was a proposal a while ago about separating the layout of CSRs from the definition of them. | 17:26 |
swetland | one simple thing might just be tooling where you can checkin a representation (json or something?) of the register layout of a peripheral and have the build warn if it changes | 17:26 |
*** lexano <[email protected]> has joined #litex | 17:27 | |
swetland | mithro: yeah that would be my inclination, assuming it wasn't too painful: some kind of simple register interface language to define the names/offsets/subfields of registers which could then plug into the HDL and be the source of truth for headers, etc | 17:27 |
mithro | swetland: I think that we added functionality to LiteX which should issue a warning if you are running on gateware which is not the same as the gateware which the headers where generated for | 17:29 |
mithro | swetland: Like there is a register which has a hash stamped into it which should be the a hash of configuration information | 17:29 |
mithro | _florent_: Didn't we implement something like that -- or am I dreaming? | 17:30 |
swetland | just fyi, my short term goals here are that I agreed to do a sort of ongoing os-internals/how-to-write-an-os workshop and decided RISCV was a nice modern "real" architecture but then wanted a RV32IMA U/S/M MMU based platform with some reasonable peripherals and existing both as an emulator target (qemu) and fpga soc (ulx3s / icsesugarpro) | 17:31 |
swetland | and I'm just about there. I've got a VEXRISC-INTC, LITEX-UART, LITEX-TIMER (need to verify), and flat framebuffer plumbed into qemu that line up with the bitstream for the fpga boards and software happily runs on both | 17:31 |
_florent_ | mithro: if this is implement, this is probably external to LiteX, I'm not aware of it | 17:32 |
mithro | swetland: Did you see this -> https://github.com/timvideos/litex-buildenv/wiki/HowTo-LCA2018-FPGA-Miniconf and https://github.com/timvideos/litex-buildenv/wiki/HowTo-LCA2018-FPGA-Miniconf-VexRiscv-Renode ? | 17:32 |
swetland | I did not. O | 17:33 |
swetland | this is similar to my setup notes for my project (but bigger and linuxier) | 17:34 |
*** lexano <[email protected]> has quit IRC (Ping timeout: 260 seconds) | 17:34 | |
swetland | I'm not asking anyone to deal with the gateware side of things (these are folks already kinda intimidated by bare metal osdev, so one thing ata a time ^^) | 17:35 |
swetland | I want to find some time to play with renode more but at the moment it seems their litex peripherals and what litex generates have drifted apart, and for its warts I can work on qemu's byzantine source base more easily than renode (or at least more quickly) | 17:37 |
mithro | swetland: The goal with that tutorial was eventually to get people to implement a fake "RustyLove3000" device and talk to it from Linux | 17:37 |
mithro | Actually, it was the LoveRusty3000 | 17:38 |
mithro | https://docs.google.com/presentation/d/1Lw4l4uZKTiymLV6uO-w0zHtxZ7iaUEH0GTLcmeFnp1w/edit#slide=id.p | 17:38 |
tpb | Title: Love Rusty 3K - LCA2018 FPGA Project Miniconf - Google Präsentationen (at docs.google.com) | 17:38 |
swetland | neat! I'm doing more a sort of mini os course --- RV32 architecture, registers/csrs/processor modes, boot, mode switching, syscalls, context switching, mmu, drivers, etc | 17:38 |
mithro | swetland: https://docs.google.com/document/d/18TYOXJRUOBQvIHrIY5IBK37HiRDgfEWk0am-pjRPpzA/edit#heading=h.65yheyxipar4 | 17:39 |
tpb | Title: Love Rusty 3000 - Techsheet - Google Docs (at docs.google.com) | 17:39 |
swetland | going to see if I can get a bunch of people who are plenty smart but have always worked much further up the stack building some toy kernels | 17:39 |
mithro | swetland: The Fomu workshop also tries to ge software people excited about doing embedded hardware - https://workshop.fomu.im/ | 17:40 |
tpb | Title: FPGA Tomu Workshop — FPGA Tomu (Fomu) Workshop 0.1-481-g505a715 documentation (at workshop.fomu.im) | 17:40 |
mithro | I have fond memories of Rusty's tutorial about writing a Linux PCI device driver -- was the first time I ever did Linux kernel development | 17:41 |
swetland | for all my griping about python (not a python fan), I'm pretty impressed with litex and how easy it's been to do some slight mods and assemble a useful little soft soc platform | 17:41 |
mithro | swetland: You have seen the Fomu workshop, right? | 17:43 |
swetland | I'm a firm believer you can't really do osdev without a hardware target and the actual available RISCV SoCs are sort of poor pickings right now (either way too tiny MCUs without enough memory, MMU, or 64bit and spendy, or from china with no docs but an "sdk" or pile of linux patches) | 17:43 |
swetland | mithro: I have not! | 17:43 |
swetland | been away from the foss fpga stuff and hw hacking for too long. spent the last year or so writing radio firmware for NRF52832 MCUs | 17:43 |
mithro | _florent_: I think https://github.com/enjoy-digital/litex/blob/master/litex/soc/integration/soc.py#L1210-L1217 is kind of the start of what I was thinking... | 17:44 |
swetland | this is nice (the fomu stuff) | 17:45 |
swetland | mithro: it'd be interesting, I think to do something kinda like ARM's CORESIGHT ROMs | 17:46 |
swetland | generate a table of device ID, revision, base addr, irq, etc in a "rom" | 17:46 |
mithro | _florent_: I think maybe what I'm thinking of was only doing in something with Fomu/xobs[m]/BeTrusted stuff or the TimVideos LiteX-BuildEnv | 17:47 |
mithro | swetland: That is kind of what compiled DeviceTree is? | 17:47 |
swetland | which then could be expanded into fdt or whatever vehicle your sw platform wants to know where the peripherals are | 17:47 |
swetland | kinda, but simpler and without all the miserable error prone string parsing | 17:47 |
swetland | I'm still pissed about devicetree. linus got grumpy about people causing a lot of churn and this war against board files was born and we got saddled with this godawful description format from the rotting corpse of openfirmware | 17:48 |
swetland | I feel it's a "the cure is worse than the disease" situation. But obviously opinions vary. | 17:49 |
mithro | swetland: I would rather use an existing solution rather than investing yet another one | 17:51 |
mithro | swetland: Actually, I believe LiteX can also generated SVD files which are compatible with a lot of ARM tooling | 17:51 |
mithro | swetland: https://github.com/enjoy-digital/litex/issues/415 -- That is used to generate automatic safe embedded rust bindings | 17:52 |
_florent_ | swetland: we've also been discussing with mithro about having a compiled description of the SoC embedded in a ROM | 17:52 |
mithro | _florent_: I think I might have been thinking about https://github.com/timvideos/litex-buildenv/blob/master/firmware/version.c | 17:52 |
_florent_ | swetland: This would also be really useful to connect SoC together, when you do a bridge to another SoC, first thing you do is read this ROM | 17:53 |
*** lexano <[email protected]> has joined #litex | 17:53 | |
mithro | swetland: A long while back I was trying to make it possible to download prebuilt gateware from the TimVideos CI system and just iterate on the firmware / C side without having to have installed Vivado / Xilinx tooling | 18:00 |
mithro | swetland: https://github.com/timvideos/litex-buildenv/blob/master/scripts/download-prebuilt.sh | 18:01 |
mithro | swetland: Then I decided it was going to be less work to just make the open source tooling better and then somehow I ended up doing paperwork full time so that this stuff gets funding | 18:02 |
*** lexano <[email protected]> has quit IRC (Ping timeout: 248 seconds) | 18:05 | |
_florent_ | leons: Hi, I'll try to see what we can do to avoid downloading the font for the VideoTerminal | 18:17 |
*** lexano <[email protected]> has joined #litex | 18:30 | |
*** lexano <[email protected]> has quit IRC (Ping timeout: 256 seconds) | 18:37 | |
*** lexano <[email protected]> has joined #litex | 18:49 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:106d:bc6:217c:5eb7> has quit IRC (Read error: Connection reset by peer) | 19:02 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:444e:4ccd:f04f:3ce2> has joined #litex | 19:03 | |
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:911:69e1:96e5:bc4a:3f5> has joined #litex | 19:08 | |
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:911:69e1:96e5:bc4a:3f5> has quit IRC (Read error: Connection reset by peer) | 19:09 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:444e:4ccd:f04f:3ce2> has quit IRC (Read error: Connection reset by peer) | 19:10 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:69e1:96e5:bc4a:3f5> has joined #litex | 19:11 | |
*** zjason` <zjason`[email protected]> has quit IRC (Read error: Connection reset by peer) | 19:49 | |
*** zjason`` <zjason``[email protected]> has joined #litex | 19:49 | |
_florent_ | mithro: BTW, I'm currently working on a SoC generator for LiteX, the idea is to have a equivalent of a mini Nios SOPC Builder/Microblaze subsystem generator: CPU + ROM + SRAM + base peripherals + MMAPs / DMAs interfaces, that you can uses without targeting a specific board. | 19:53 |
_florent_ | The SoC generator: https://github.com/enjoy-digital/litex/blob/master/litex/tools/litex_soc_gen.py | 19:54 |
mithro | SOPC? | 19:54 |
_florent_ | SOPC: that's the name of the tool yes :) (seems to be System On Programmable Chip) | 19:55 |
_florent_ | and an example of use on Arty: https://github.com/enjoy-digital/litex_soc_gen_test/blob/master/digilent_arty.py#L77-L82 | 19:55 |
_florent_ | it would be fun to test this on MPW :) | 19:56 |
mithro | _florent_: It this basically a generator for generic verilog output with the bus ports exposed? | 19:56 |
mithro | _florent_: BTW Did you see https://github.com/efabless/caravel_mgmt_soc_litex ? | 19:57 |
_florent_ | yes, using the same configuration parameters than the ones used on the targets (--cpu-type, --bus-standard, etc...) | 19:57 |
*** lexano <[email protected]> has quit IRC (Ping timeout: 246 seconds) | 19:59 | |
_florent_ | mithro: I had a quick look yes but find the code a bit difficult to read | 20:02 |
_florent_ | mithro: is it also possible to simulate caravel on an FPGA or are they only doing simulation? | 20:03 |
mithro | _florent_: It would be great to help provide them with suggestions/advice so it is easier to read | 20:03 |
_florent_ | mithro: if they are not running it on FPGA, I think it could make sense to do it. It would make contributions a lot easier (and I think most of the code should be generic enough for it). | 20:06 |
mithro | _florent_: Unclear to me about that | 20:06 |
mithro | _florent_: I agree that would be great to have working | 20:07 |
_florent_ | it seems it's also the first question you had: https://github.com/efabless/caravel_mgmt_soc_litex/issues/1 :) | 20:07 |
mithro | _florent_: Always infinite more work to do :-P | 20:11 |
*** lexano <[email protected]> has joined #litex | 20:12 | |
_florent_ | mithro: I'll try to have a closer look/play with it and will try to contribute of do suggestions. | 20:13 |
_florent_ | mithro: is it what is now used on MPW? | 20:13 |
mithro | _florent_: No pressure, there is always lots of different things happening | 20:14 |
mithro | _florent_: Yes | 20:14 |
mithro | _florent_: I wanted more collaboration / overlap between the ASIC and FPGA work I was funding, so requested they stop designing their own SoC system and just use the already popular LiteX ecosystem | 20:15 |
_florent_ | ok good, thanks :) | 20:18 |
_florent_ | in fact, I think being able to running caravel on an FPGA could be 1) interesting for the development of caravel 2) but also for users having to interface their design with caravel (if user core can fit in an FPGA) | 20:20 |
mithro | I 100% agree | 20:34 |
mithro | _florent_: Trying to convince people to work together seems like 50% of my job -- It is really great to see the LiteX + SpinalHDL collaboration and LiteX + mor1kx | 20:44 |
mithro | _florent_: I have a goal of getting LiteDRAM taped out on SKY130 | 20:46 |
mithro | _florent_: https://www.linkedin.com/feed/update/urn:li:activity:6915871513820741632?updateEntityUrn=urn%3Ali%3Afs_feedUpdate%3A%28V2%2Curn%3Ali%3Aactivity%3A6915871513820741632%29 | 20:47 |
tpb | Title: Michael Taylor on LinkedIn: I am excited to announce another tapeout from the Bespoke Silicon (at www.linkedin.com) | 20:47 |
mithro | > We implemented the world’s first open source SSTL DDR3 I/O. | 20:48 |
_florent_ | nice, for LiteDRAM are you planning to directly go with DDR3? or do a first test with SDRAM? | 20:53 |
_florent_ | Collaborations with Dolu are very pleasants and both projects are complementary, we don't speak the same HDL language but are still able to understand each others on concepts (and in french) :) | 20:58 |
mithro | _florent_: While he currently lives in Japan, Johan / proppy on my team is also french. It does seem like france really punches above its weight in the field of FPGA / ASIC world | 21:00 |
mithro | _florent_: Did you see the LiteX inside Juypter notebooks that proppy did? | 21:01 |
mithro | _florent_: When combined with Google's Colab Notebooks (basically free Google Cloud hosted Juypter notebooks) you can do FPGA SoC development without needing to install anything. | 21:02 |
_florent_ | mithro: ah interesting, do you have a link? | 21:02 |
mithro | _florent_: It should be somewhere in https://twitter.com/proppy/status/1522591377011666946 | 21:03 |
mithro | _florent_: BTW CarlFK has gotten most of the way through setting up my Digilent Arty A35T remote access farm | 21:04 |
mithro | CarlFK: Did you have some recent photos of the stuff you got set up? | 21:04 |
mithro | _florent_: Goal is to deploy at least 20 devices | 21:05 |
* CarlFK uploaded an image: (2228KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/FWIenXRmINdorQDFbDRgavjT/download_20220505_020522.jpg > | 21:08 | |
CarlFK | That is at PS1. I need to take some better PR shots that show what is going on | 21:09 |
_florent_ | CarlFK: thanks. | 21:14 |
_florent_ | mithro: Are you planning to allow anyone to access them? | 21:15 |
CarlFK | curenty, yes | 21:15 |
CarlFK | I'm trying to get this working: https://stuicey.github.io/SSHy/ | 21:15 |
tpb | Title: SSHy.us (at stuicey.github.io) | 21:15 |
CarlFK | that is just an ssh client, so people are free to use whatever ssh client they want | 21:16 |
mithro | _florent_: Two plans -- (a) CI for things like LiteX / F4PGA / etc (b) Access by anyone to play with and test things and don't have local hardware | 21:16 |
_florent_ | mithro: Good | 21:19 |
mithro | _florent_: They are suppose to be as identical as possible and are remotely power cyclable as well | 21:19 |
_florent_ | Sorry that the end of the day here, thanks for the discussion | 21:19 |
mithro | _florent_: No worries! I always assume that IRC is a lossy communication mechanism and people might need to walk away at any time | 23:02 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!