Thursday, 2020-01-02

*** tpb has joined #tomu00:00
*** xkapastel has joined #tomu00:40
xobsvesim: Hooray!  Glad it's working -- that's a big improvement :)01:07
xobsSadly, I don't think the clock can go much faster.  From synthesis: `Info: Max frequency for clock 'clk12_$glb_clk': 16.03 MHz (PASS at 12.00 MHz)`01:07
xobsMake sure you're building with `-Os`, and that you put any hot functions in RAM.01:08
*** pizzapim has joined #tomu01:43
futarisIRCcloudvesim: umull (ARM) -> mul (RISC-V) ?01:44
*** pizzapim has quit IRC01:44
*** cedric has quit IRC02:07
*** cedric has joined #tomu02:07
*** cedric has joined #tomu02:07
xobsIf anyone wants to work on the Random block, that would be a Good First Issue.02:16
xobsCopy https://github.com/im-tomu/foboot/blob/master/hw/foboot-bitstream.py and remove most of the stuff, then make it so it builds without a CPU (only DummyUSB), then fill in a basic Ring Oscillator.  Then you can debug it with wishbone-util.02:18
tpbTitle: foboot/foboot-bitstream.py at master · im-tomu/foboot · GitHub (at github.com)02:18
xobsvesim: in case you're curious, the CPU definition is at https://github.com/xobs/VexRiscv-verilog/blob/master/src/main/scala/vexriscv/GenFomuCrypto.scala (with the CPU actually at https://github.com/xobs/VexRiscv-verilog/blob/master/VexRiscv_Fomu_Crypto.v)02:22
tpbTitle: VexRiscv-verilog/GenFomuCrypto.scala at master · xobs/VexRiscv-verilog · GitHub (at github.com)02:22
*** rohitksingh has joined #tomu03:55
*** bluebugs has joined #tomu06:25
*** bluebugs has joined #tomu06:25
*** cedric has quit IRC06:25
*** emeb has quit IRC06:47
*** xkapastel has quit IRC07:20
*** cdmatter has quit IRC08:03
*** cdmatter has joined #tomu08:04
*** rohitksingh has quit IRC09:34
*** rohitksingh has joined #tomu09:50
*** wrtlprnft has quit IRC09:52
*** wrtlprnft has joined #tomu09:53
*** rohitksingh has quit IRC09:59
*** wrtlprnft has quit IRC10:07
*** wrtlprnft has joined #tomu10:08
*** rohitksingh has joined #tomu10:36
*** auscompgeek has quit IRC10:40
*** migy has quit IRC10:41
*** migy has joined #tomu10:49
*** rohitksingh has quit IRC10:57
vesimxobs: i've moved everything related to crypto to ram and use -O3, that is giving the best performance11:07
*** bluebugs has quit IRC11:21
*** rohitksingh has joined #tomu11:21
*** cedric has joined #tomu11:22
*** cedric has joined #tomu11:22
*** cedric has quit IRC12:03
*** cedric has joined #tomu12:04
*** cedric has joined #tomu12:04
mithroxobs: What does rm mean?12:13
mithrovesim: Ariane is a very poor fit to FPGAs12:13
xobsReference Manual12:17
gurke_i'm still digging into all that stuff which is quite new for me - so please excuse silly looking questions12:28
mithroxobs: Can you keep rs in the name of https://github.com/im-tomu/fomu-pac ?12:28
tpbTitle: im-tomu/fomu-pac · GitHub (at github.com)12:28
gurke_to me it looks like vexrisc-v and picorv are sometimes used interchangeably - how do both compare?12:32
gurke_also, the bootloader seems to contain some code for both12:33
xobsmithro: sure, the actual Rust crate name will be `fomu-pac`, but the git repo address is now `fomu-rs-pac`.12:33
xobsgurke_: they're both flavours of riscv core.  Some of the foboot code is taken from litex, which supports 5-6 CPU cores including both vexriscv and picorv32.12:34
xobspicorv32 is written entirely in Verilog, and is very approachable and easy to understand.12:34
mithroxobs: Great! that works for me12:35
xobsVexriscv is written in Scala, and is super extensible (it scales from Fomu all the way up to Linux), but is harder to understand.12:35
mithropicorv32 was designed from to try and get a very high fmax -- even at the expense for actual performance -- it's designed to run in the same clock domain as a peripheral it is controlling so you don't have to pay CDC stuff12:36
* mithro is slowly catching up on all the email he has been ignoring12:37
gurke_ok, so regarding fomu, both are basically exchangeable? how do they compare regarding required "gate space" (or how is that called?)12:38
gurke_mithro: ok, thx - what is CDC ?12:38
mithroClock DOmain Crossing12:42
xobsFomu uses vexriscv.  We use it in a small configuration with only two pipeline stages, no multiply or divide unit, but with an MMU and a 2048-byte icache.12:42
xobsBut yesterday I made a configuration of the cpu for vesim that had no MMU or debugger, but with a multiply, divide, and single-cycle shifter.12:43
david-sawatzke[mxobs: Small nitpick, but isn't the common rust repo naming pattern adding "-rs" at the end of the repo name?12:49
xobsdavid-sawatzke: Sure, so change it to fomu-pac-rs?12:50
gurke_ok, in the bootloader, there are a few references to picorv32, mainly a control register and some SPI stuff - so this isn't actually used?12:50
david-sawatzke[mYeah12:50
david-sawatzke[mShould i just push my commits?12:51
xobsYes please.  I changed the URL to https://github.com/im-tomu/fomu-pac-rs12:51
tpbTitle: im-tomu/fomu-pac-rs · GitHub (at github.com)12:51
xobsgurke_: Yeah, vexriscv has a different IRQ CSR than picorv32.12:52
xobsThe picorv32 code isn't actually used, and could safely be removed.12:52
gurke_ok, thx12:53
*** rohitksingh has quit IRC13:09
*** rohitksingh has joined #tomu13:28
vesimxobs: is there a space to enable MMU?13:41
xobsvesim: Can't fit the MMU + multiply unit currently.13:41
xobsAlso, I've never actually tried enabling it.  But the `satp` register is there.13:41
vesim:(13:44
*** xkapastel has joined #tomu13:59
mithroxobs: Does https://github.com/litex-hub/litex-boards/pull/30/files look right?14:00
tpbTitle: Updating the templates for Fomu. by mithro · Pull Request #30 · litex-hub/litex-boards · GitHub (at github.com)14:00
xobsmithro: it does, in that it is a copy of the fix _florent_ did in foboot.14:01
xobsSo I'd say it looks good!14:02
mithroxobs: I'll leave you in charge of https://github.com/im-tomu/fomu-workshop/pull/94 ?14:05
tpbTitle: Add Rust example by Tiwalun · Pull Request #94 · im-tomu/fomu-workshop · GitHub (at github.com)14:05
mithroxobs: https://github.com/im-tomu/fomu-workshop/pull/108/files ?14:09
tpbTitle: Remove old riscv-usb-cdcacm code example. by mithro · Pull Request #108 · im-tomu/fomu-workshop · GitHub (at github.com)14:09
xobsmithro: good idea. I was never a fan of that example. And tinyusb does it so much better.14:10
tiwalunxobs: can you please make a new release of the fomu-rt crate? Then I can remove the patch from the workshop example14:24
xobsSure, let me do that.14:24
tiwalunThanks14:25
xobsPublished 0.0.4.14:27
*** cedric has quit IRC14:36
*** cedric has joined #tomu14:37
*** cedric has joined #tomu14:37
tiwalunI removed the patch, should be ready to review now14:40
mithroxobs: Should we add rm to the workshop?14:43
*** emeb has joined #tomu15:08
*** emeb has quit IRC16:56
*** xkapastel has quit IRC17:08
vesim[error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: default#vexriscv_2.11;0.1.0-SNAPSHOT: not found18:00
vesimhow i can fix thix issue?18:00
*** rohitksingh_ has joined #tomu18:00
vesimthat's when i try to compile vexriscv core18:00
vesimfrom your repo18:00
*** rohitksingh has quit IRC18:03
*** rohitksingh_ has quit IRC18:05
*** rohitksingh has joined #tomu18:08
*** rohitksingh_ has joined #tomu18:09
*** rohitksingh__ has joined #tomu18:10
*** rohitksingh has quit IRC18:13
*** rohitksingh_ has quit IRC18:14
*** rohitksingh__ has quit IRC18:15
*** rohitksingh has joined #tomu18:18
*** rohitksingh_ has joined #tomu18:20
*** rohitksingh has quit IRC18:20
*** rohitksingh has joined #tomu18:21
*** rohitksingh__ has joined #tomu18:22
*** rohitksingh___ has joined #tomu18:23
*** rohitksingh____ has joined #tomu18:24
*** rohitksingh_ has quit IRC18:24
*** rohitksingh has quit IRC18:25
*** rohitksingh_ has joined #tomu18:25
*** rohitksingh has joined #tomu18:27
*** rohitksingh__ has quit IRC18:27
*** rohitksingh has quit IRC18:27
*** rohitksingh__ has joined #tomu18:28
*** rohitksingh___ has quit IRC18:28
*** rohitksingh____ has quit IRC18:29
*** rohitksingh_ has quit IRC18:30
*** rohitksingh has joined #tomu18:31
*** rohitksingh has joined #tomu18:32
*** rohitksingh__ has quit IRC18:33
*** rohitksingh_ has joined #tomu18:34
*** rohitksingh__ has joined #tomu18:35
*** rohitksingh has quit IRC18:37
*** rohitksingh has joined #tomu18:38
*** rohitksingh_ has quit IRC18:38
*** rohitksingh has joined #tomu18:39
*** rohitksingh__ has quit IRC18:39
*** rohitksingh has quit IRC18:39
*** rohitksingh has joined #tomu18:40
*** rohitksingh has quit IRC18:45
*** rohitksingh has joined #tomu18:47
*** rohitksingh_ has joined #tomu18:49
*** rohitksingh has quit IRC18:52
*** rohitksingh_ has quit IRC18:53
*** rohitksingh has joined #tomu18:54
*** rohitksingh_ has joined #tomu18:55
*** rohitksingh has quit IRC18:56
*** rohitksingh has joined #tomu18:57
*** rohitksingh has quit IRC18:57
*** rohitksingh_ has quit IRC19:00
*** TomKeddie has quit IRC19:03
*** rohitksingh has joined #tomu19:07
*** rohitksingh_ has joined #tomu19:08
*** rohitksingh__ has joined #tomu19:09
*** rohitksingh has quit IRC19:12
*** rohitksingh_ has quit IRC19:13
*** rohitksingh__ has quit IRC19:14
*** rohitksingh has joined #tomu19:15
*** rohitksingh_ has joined #tomu19:16
*** rohitksingh__ has joined #tomu19:17
*** rohitksingh___ has joined #tomu19:18
*** rohitksingh has quit IRC19:19
*** rohitksingh___ has joined #tomu19:19
*** rohitksingh has joined #tomu19:21
*** rohitksingh_ has quit IRC19:21
*** rohitksingh__ has quit IRC19:22
*** rohitksingh_ has joined #tomu19:22
*** rohitksingh___ has quit IRC19:24
*** rohitksingh_ has quit IRC19:25
*** rohitksingh_ has joined #tomu19:25
*** rohitksingh has quit IRC19:25
*** rohitksingh has joined #tomu19:26
*** rohitksingh_ has quit IRC19:30
*** rohitksingh has quit IRC19:31
*** rohitksingh has joined #tomu19:34
*** rohitksingh_ has joined #tomu19:36
*** rohitksingh__ has joined #tomu19:37
*** rohitksingh___ has joined #tomu19:38
*** rohitksingh____ has joined #tomu19:39
*** rohitksingh has quit IRC19:39
*** rohitksingh_ has quit IRC19:40
*** rohitksingh__ has quit IRC19:42
*** rohitksingh___ has quit IRC19:43
*** rohitksingh____ has quit IRC19:44
*** rohitksingh_ has joined #tomu19:47
*** rohitksingh_ has quit IRC19:52
*** rohitksingh has joined #tomu20:01
*** rohitksingh_ has joined #tomu20:02
*** rohitksingh__ has joined #tomu20:03
*** rohitksingh___ has joined #tomu20:04
*** rohitksingh has quit IRC20:06
*** rohitksingh_ has quit IRC20:07
*** rohitksingh has joined #tomu20:08
*** rohitksingh__ has quit IRC20:08
*** rohitksingh_ has joined #tomu20:09
*** rohitksingh__ has joined #tomu20:10
*** rohitksingh___ has joined #tomu20:11
*** rohitksingh has quit IRC20:13
*** rohitksingh____ has joined #tomu20:13
*** rohitksingh_ has quit IRC20:14
*** rohitksingh__ has quit IRC20:15
*** rohitksingh___ has quit IRC20:16
*** rohitksingh____ has quit IRC20:17
*** rohitksingh has joined #tomu20:18
*** rohitksingh_ has joined #tomu20:20
*** rohitksingh__ has joined #tomu20:21
*** rohitksingh___ has joined #tomu20:22
*** rohitksingh has quit IRC20:23
*** rohitksingh has joined #tomu20:23
*** rohitksingh_ has quit IRC20:24
*** rohitksingh_ has joined #tomu20:24
*** rohitksingh__ has quit IRC20:25
*** rohitksingh___ has quit IRC20:26
*** rohitksingh__ has joined #tomu20:26
*** rohitksingh has quit IRC20:28
*** rohitksingh___ has joined #tomu20:28
*** rohitksingh has joined #tomu20:29
*** rohitksingh_ has quit IRC20:30
*** rohitksingh__ has quit IRC20:31
*** rohitksingh_ has joined #tomu20:32
*** rohitksingh___ has quit IRC20:32
*** rohitksingh has quit IRC20:33
*** rohitksingh has joined #tomu20:33
*** rohitksingh__ has joined #tomu20:34
*** rohitksingh___ has joined #tomu20:36
*** rohitksingh____ has joined #tomu20:37
*** rohitksingh_ has quit IRC20:37
vesimyaay, i've got UART working over touch pads20:37
CarlFKwut?20:37
vesimi thought that it will be more painful :D20:37
*** rohitksingh has quit IRC20:38
*** rohitksingh__ has quit IRC20:39
*** rohitksingh___ has quit IRC20:40
vesimhttps://gist.github.com/vesim987/734104f80ad06a2f6faeec4c8946aeb120:41
tpbTitle: fomu uart · GitHub (at gist.github.com)20:41
*** rohitksingh____ has quit IRC20:41
*** rohitksingh has joined #tomu20:45
*** im-tomu has left #tomu20:46
*** im-tomu has joined #tomu20:46
vesimso i can connect ft232r to the two side touch pads and have side channel to debug my u2f implementation20:47
*** rohitksingh has quit IRC20:49
*** rohitksingh has joined #tomu20:51
*** rohitksingh_ has joined #tomu20:52
*** rohitksingh__ has joined #tomu20:53
*** rohitksingh___ has joined #tomu20:54
*** rohitksingh has quit IRC20:55
*** rohitksingh has joined #tomu20:55
*** rohitksingh_ has quit IRC20:56
*** rohitksingh_ has joined #tomu20:56
vesimand by debug i mean "print debugging" :P20:57
*** rohitksingh__ has quit IRC20:57
*** rohitksingh___ has quit IRC20:59
*** rohitksingh has quit IRC21:00
*** rohitksingh_ has quit IRC21:01
CarlFKthat's pretty awesome21:02
CarlFKprint and pprint are my python debugging tools21:02
*** rohitksingh_ has joined #tomu21:04
*** rohitksingh__ has joined #tomu21:06
*** rohitksingh has joined #tomu21:08
*** rohitksingh___ has joined #tomu21:09
*** rohitksingh_ has quit IRC21:10
*** rohitksingh_ has joined #tomu21:10
*** rohitksingh___ has joined #tomu21:11
*** rohitksingh__ has quit IRC21:11
*** rohitksingh has quit IRC21:12
*** rohitksingh_ has quit IRC21:14
*** rohitksingh___ has quit IRC21:16
*** wrtlprnft has quit IRC21:16
*** rohitksingh has joined #tomu21:17
*** wrtlprnft has joined #tomu21:17
*** rohitksingh_ has joined #tomu21:19
*** rohitksingh__ has joined #tomu21:20
*** rohitksingh___ has joined #tomu21:21
*** rohitksingh has quit IRC21:22
*** rohitksingh has joined #tomu21:23
*** rohitksingh_ has quit IRC21:24
*** rohitksingh_ has joined #tomu21:24
*** rohitksingh__ has quit IRC21:25
*** rohitksingh____ has joined #tomu21:25
*** wrtlprnft has quit IRC21:26
*** wrtlprnft has joined #tomu21:26
*** rohitksingh__ has joined #tomu21:26
*** rohitksingh___ has quit IRC21:26
*** rohitksingh has quit IRC21:27
*** rohitksingh_ has quit IRC21:28
*** rohitksingh____ has quit IRC21:30
*** rohitksingh__ has quit IRC21:30
*** rohitksingh has joined #tomu21:32
*** rohitksingh_ has joined #tomu21:33
*** rohitksingh__ has joined #tomu21:34
*** rohitksingh has quit IRC21:37
*** rohitksingh_ has quit IRC21:38
*** wrtlprnft has quit IRC21:38
*** rohitksingh__ has quit IRC21:39
*** wrtlprnft has joined #tomu21:39
*** rohitksingh has joined #tomu21:42
*** rohitksingh_ has joined #tomu21:43
*** rohitksingh__ has joined #tomu21:45
*** rohitksingh has quit IRC21:47
*** rohitksingh__ has quit IRC21:47
*** rohitksingh has joined #tomu21:47
*** rohitksingh_ has quit IRC21:48
*** rohitksingh_ has joined #tomu21:48
*** rohitksingh has quit IRC21:52
*** rohitksingh_ has quit IRC21:53
*** rohitksingh has joined #tomu21:59
*** rohitksingh_ has joined #tomu21:59
*** rohitksingh__ has joined #tomu22:01
*** rohitksingh___ has joined #tomu22:02
*** rohitksingh____ has joined #tomu22:03
*** rohitksingh has quit IRC22:03
*** rohitksingh_ has quit IRC22:04
*** rohitksingh__ has quit IRC22:05
*** rohitksingh___ has quit IRC22:06
*** rohitksingh____ has quit IRC22:07
*** rohitksingh_ has joined #tomu22:09
*** rohitksingh_ has quit IRC22:13
*** rohitksingh has joined #tomu22:16
*** rohitksingh_ has joined #tomu22:17
*** rohitksingh__ has joined #tomu22:18
*** rohitksingh has quit IRC22:20
*** rohitksingh_ has quit IRC22:22
*** rohitksingh__ has quit IRC22:23
gurke_just redoing the workshop in order to see if i can document/fix more things...22:34
gurke_on my fomu, spi.id() (in micropython) returns 0 for a pvt fomu - is that correct / expected?22:35
gurke_also, the workshop says "If we look at the generated Fomu header files, [...]" - I think a link would make sense...? Which headers should I link to?22:37
futarisIRCcloudhttps://www.cnx-software.com/2020/01/02/polos-gd32v-alef-tiny-risc-v-mcu-board/22:56

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!