Monday, 2021-02-22

*** tpb has joined #litex00:00
*** futarisIRCcloud has joined #litex00:07
*** lf has quit IRC00:13
*** lf has joined #litex00:14
*** Degi has quit IRC02:11
*** Degi has joined #litex02:14
*** futarisIRCcloud has quit IRC02:27
*** Degi_ has joined #litex03:32
*** Degi has quit IRC03:33
*** Degi_ is now known as Degi03:33
*** TMM has quit IRC03:40
*** TMM has joined #litex03:40
*** futarisIRCcloud has joined #litex04:42
*** FFY00 has quit IRC05:10
*** FFY00 has joined #litex05:11
*** midnight has quit IRC05:30
*** _whitelogger has quit IRC06:54
*** _whitelogger has joined #litex06:56
_florent_nickoe: LiteDRAMDMAReader has two endpoints: a sink to provide your read request and a source that will return the data06:59
_florent_so you can just set sink.valid.eq(1), sink.address.eq(the_address_you_want_to_read)07:00
_florent_then wait sink.ready to be 107:00
_florent_and data will be returned on source.data when source.valid is 107:00
*** dormito has quit IRC07:15
*** futarisIRCcloud has quit IRC07:41
*** Bertl_oO is now known as Bertl_zZ07:43
_florent_cr1901_modern: just for info, the standard Microwatt variant (without irq) is fixed by https://github.com/enjoy-digital/litex/commit/a51bf60712bac51077d849e037f060fb02f5961409:32
_florent_you can simulate it with: lxsim --cpu-type=microwatt --cpu-variant=standard+ghdl09:32
_florent_I'm now going to see if I can build the OrangeCrab target09:33
_florent_cr1901_modern: I just tested this: ./orangecrab.py --cpu-type=microwatt --cpu-variant=standard+ghdl --integrated-rom-size=0xa000 --build09:46
_florent_Autoname pass is ok, but this is using too much resources:09:46
_florent_https://www.irccloud.com/pastebin/8VFsgsVD/09:47
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)09:47
_florent_so I would recommend testing on a larger FPGA first09:47
cr1901_modern_florent_: Okay, thanks for testing. Could you give me your commit hash for litex as well as _any_ diffs you applied to pythondata-cpu-microwatt?09:53
cr1901_modernAlso, I'm afraid I don't have any FOSS FPGA that's bigger LOL. Noted that microwatt is rather large09:54
cr1901_modern_florent_: Oh wait... I tested --cpu-variant=standard+ghdl+irq09:55
cr1901_modernThat's was the variant that was failing an assert09:55
_florent_cr1901_modern: yes, I also have the assertion failure with it, I'm  currently looking at this09:55
cr1901_modernAwesome, tyvm09:56
cr1901_modernI'm going to pull and test your command line immediately09:56
cr1901_modernMy changes: http://ix.io/2QkG09:58
_florent_https://github.com/enjoy-digital/litex/commit/91cebb51598c32ef616ef70bd63251658181fb3b fixes the irq variants.09:58
cr1901_modernAwesome09:58
cr1901_modernJust to reiterate, new versions of binutils error out on command line args it doesn't understand09:59
_florent_here the diff I have in pythondata_cpu_microwatt:09:59
cr1901_modern-nodefaultlibs is one of these options09:59
_florent_https://www.irccloud.com/pastebin/vCJzKB8d/09:59
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)09:59
cr1901_moderntyvm for the diff09:59
cr1901_modernIdk what you want to do about the binutils problem- it may not affect you rn. But it's a heads-up10:00
_florent_cr1901_modern: would you mind opening an issue for this? We could also discuss this other developers familiar with Microwatt10:01
cr1901_modernWhich part? The autoname problem or the binutils problem?10:01
cr1901_modern(I can do both of course)10:02
_florent_the autoname problem seems more related to others tools (GHDL-Synth/Yosys?)10:02
_florent_but for binutils we can probably do something in LiteX10:03
cr1901_modern_florent_: https://github.com/enjoy-digital/litex/issues/82510:11
cr1901_modern>Info:               DP16KD:    56/   56   100%10:15
cr1901_modernThat's not good... ._.10:15
*** Melkhior has quit IRC10:39
_florent_cr1901_modern: moving the BIOS to SPI Flash (as done on Fomu/Icebreaker) could help for this.10:52
cr1901_modernSure... but I'm still surprised11:00
nickoe_florent_: Can I run a simulation of my entire soc? I see yhe antmicro blog about it using renode for the cpu emulation amd verlator for som modules, but I am not sure how to set this up properly. Can I use lxsim entirely?11:14
*** Melkhior has joined #litex12:23
*** futarisIRCcloud has joined #litex12:56
_florent_nickoe: litex_sim is indeed a simulaton of a LiteX SoC. The default is something basic (CPU + ROM + SRAM + UART), but you can also enable Ethernet/SDRAM13:16
_florent_we are using this to boot linux in simulation for example in https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/sim.py13:17
*** Bertl_zZ is now known as Bertl14:20
*** midnight has joined #litex14:20
nickoe_florent_: I don't need linux, just bare metal fw14:28
*** kgugala has joined #litex14:49
*** mikeK_de1soc has joined #litex14:51
*** mikeK_de1soc has quit IRC15:12
*** mikeK_de1soc has joined #litex15:22
shoragan_florent_, how would BIOS from SPI flash work? does that SPI controller have mmap support?15:52
*** mikeK_de1soc has quit IRC16:26
*** Melkhior has quit IRC16:42
*** mikeK_de1soc has joined #litex17:13
*** rj has joined #litex17:16
*** mikeK_de1soc has quit IRC18:15
*** mikeK_de1soc has joined #litex18:32
*** FFY00 has quit IRC18:32
*** FFY00 has joined #litex18:34
*** FFY00 has quit IRC19:50
*** FFY00 has joined #litex19:50
*** TMM has quit IRC19:58
*** TMM has joined #litex19:58
*** Bertl is now known as Bertl_oO20:17
nickoeshoragan: It just works.. :D I think it is mmapped20:26
nickoeor can20:26
nickoeor maybe I misunderstood you20:26
nickoemmm20:26
shoragannickoe, thanks, then i found the right part in the soc integration :)20:27
nickoe:)20:30
nickoe_florent_: How do I specify the simulation to run my target?21:34
*** keesj has quit IRC21:36
nickoe_florent_: by the way, I did successfully make the linux-on-litex-vescrisv boot the simulation. It appears to run on one core only (on the host) is that expected?22:04
*** mikeK_de1soc has quit IRC22:14
nickoemm, trying to follow the example and make a sim.py, but it keeps complaining that for example: TypeError: litex.soc.integration.soc_core.SoCCore.__init__() got multiple values for keyword argument 'with_uart'23:24
nickoeI can't see where it comes from in the first place23:24
nickoehttps://github.com/nickoe/litex-boards/commit/065b2272fd4d723ff6f1c85c64c92ee2e168ebac23:25
nickoeWhen I get to https://github.com/nickoe/litex-boards/commit/065b2272fd4d723ff6f1c85c64c92ee2e168ebac#diff-d425e98545324591d65661ee2e287a013bc2633e6dfdb211f9ac66551c2a619aR351 it appears that soc_sdram_args(parser) seems to break it..23:28
nickoehttps://dpaste.com/4MXHGXYLU mmm23:34
tpbTitle: dpaste: 4MXHGXYLU (at dpaste.com)23:34
nickoeI guess I should just admit I am stuck for today and go to bed.23:36
nickoewhich riscv64-unknown-elf-ld23:40
nickoe/usr/bin/riscv64-unknown-elf-ld    FWIW23:40

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