Thursday, 2019-10-24

*** tpb has joined #yosys00:00
*** emeb has quit IRC00:15
*** emeb_mac has quit IRC00:15
*** emeb_mac has joined #yosys00:18
*** Noname_Matt has joined #yosys00:21
*** Noname_Matt has joined #yosys00:25
Noname_Matttest.00:26
mwktoast.00:29
*** GenTooMan has quit IRC00:53
*** GenTooMan has joined #yosys00:55
*** matthuszagh has joined #yosys02:17
matthuszaghhello. i'm having some trouble getting yosys to find verilog include files via a tcl script. I must be doing something obviously wrong but I can't pinpoint it. If I write the read_verilog line as 'read_verilog -sv -I/path... top.v' it works fine, but if I place the same string in an environment variable and read it out with $::env(INCLUDES) yosys emits an error saying it can't open the include file. I've checked that tcl gets the02:27
matthuszaghvariable with puts $::env(INCLUDES) and it matches what I expect02:27
matthuszaghhappy to post the actual scripts and output if that helps02:29
*** PyroPeter has quit IRC02:47
*** PyroPeter has joined #yosys03:01
Noname_Mattmatthuszagh How are you calling yosys with the includes?03:03
Noname_MattI ran into a (sort of) glitch in TCL like this03:04
Noname_Mattif you read it in like03:04
Noname_Mattset my_var "item1 item2 item3"03:04
Noname_Mattthen call it like03:04
Noname_Mattexec "yosys" $my_var03:05
Noname_Mattyou may get this problem as the three items are passed as one item with spaces in it03:05
Noname_Mattthis is not a system() call. it's directly calling the exec() system call03:05
Noname_Mattthe workaround is to do03:05
Noname_Matteval exec "yosys" $my_var03:06
Noname_Mattwhich adds an extra level of evaluation which breaks apart the list03:06
Noname_Mattbe careful about attacker controlled variable contents though, as this is adding an extra iteration of evaluation after all03:07
matthuszaghNoname_Matt: the way I call it is a bit different. I have a makefile with an export command at the top, then variable definitions then just yosys path/to/script.tcl03:08
matthuszaghi'm trying to come up with a minimal example that introduces, but so far it's working there...03:08
matthuszaghs/introduces/reproduces/03:08
*** gatin00b has joined #yosys03:09
Noname_Mattah, ok. I'm not familiar with yosys' internal TCL interfaces and interpreter03:09
matthuszaghthanks anyway!03:09
Noname_Mattthough I have plenty of experience with synopsys' :P03:10
Noname_Mattneed to learn more about yosys and the icestorm flow03:10
Noname_MattI've only done some small proof of concept stuff so far03:10
matthuszaghah was just about to ask if there's a way around the tcl usage (i.e. get a enviro variable from a yosys script) but i guess then you probably wouldn't know03:11
*** shapr has left #yosys03:33
Noname_Mattcan you do something like03:40
Noname_Mattyosys --includes $includes03:41
*** Noname_Matt has quit IRC03:41
*** Noname_Matt has joined #yosys03:43
*** Guest4992 has joined #yosys03:45
Guest4992argh. battery picked that exact instant to die03:46
*** Guest4992 is now known as Noname_MAtt03:46
*** Noname_MAtt is now known as Noname_Matt03:46
matthuszaghNoname_Matt: that doesn't appear to work either03:46
Noname_MattIt probably wouldn't. I was making up the command line option.03:46
Noname_MattMy point was rather can you have the calling makefile derefeence the variable?03:47
Noname_Mattdereference*03:47
matthuszaghoh yeak ok i see. unfortunately i don't think yosys has an include flag like that03:48
matthuszaghjust via yosys -p03:48
matthuszaghI've filed a bug report, seems like it may be one03:50
*** matthuszagh has left #yosys04:08
*** citypw has joined #yosys06:02
*** emeb_mac has quit IRC06:35
*** dys has joined #yosys07:10
*** dys has quit IRC07:54
*** dys has joined #yosys08:04
*** pie_ has quit IRC09:00
*** rqou has quit IRC09:05
*** X-Scale has quit IRC10:01
*** X-Scale` has joined #yosys10:01
*** X-Scale` is now known as X-Scale10:02
*** fsasm has joined #yosys10:12
*** pie_ has joined #yosys10:12
*** rqou has joined #yosys10:37
*** pie_ has quit IRC12:39
*** craigo has quit IRC13:05
*** vidbina has joined #yosys13:48
Noname_Mattanyone remember offhand what the maximum clock frequency of the RISCV core that can be implemented on the HX8K is?14:02
daveshahAbout 60MHz14:04
daveshahfor both picorv32 and vexriscv14:04
daveshah70MHz might be doable with optimum config and good luck14:04
rvensehow many clocks per instruction?14:06
daveshahpicorv32 is around 3, vex is probably less than that14:07
tntvex is also lower fmax though.14:16
tnt(at least on the up5k that's been my experience, for a minimal config)14:16
Noname_MattIsn't the HX series a bit faster?14:18
daveshahYes, but relative fmax would probably be simila14:18
Noname_Mattwhy is that?14:19
daveshahBecause the up5k is roughly proportionally slower than the hx8k14:19
Noname_MattI don't follow. If the HX series is faster (Wikipedia quotes 7.30 ns versus 9.00–9.36 ns which is around 25% improvement), wouldn't the maximum frequency for the core likewise be faster on one of the HX devices?14:22
daveshahYes14:22
daveshahBut it probably doesn't change picorv32 being higher fmax than vex14:22
Noname_Mattah14:23
daveshah(idk what that wiki number is but the difference is more like 2-3x)14:23
Noname_Mattso would 60MHz be representative of the faster chips?14:23
daveshahYes, that was in the context of an hx8k14:24
Noname_Mattso maybe 20-30MHz on other devices?14:24
daveshahYeah14:25
daveshahtnt probably has more experience here14:25
tntOn the UP5k meeting 24 MHz with picorv is not too hard. I also have a design where it's at 30.72 MHz, but that one requires quite a bit of trying seeds to pass timing.14:33
tntIt can vary wildly depending on what you put on the memory bus obviously ...14:34
*** vidbina has quit IRC14:35
*** vidbina has joined #yosys14:53
*** vidbina has quit IRC14:57
*** dys has quit IRC16:29
*** citypw has quit IRC16:36
*** vidbina has joined #yosys16:36
*** vidbina has quit IRC17:19
*** vidbina has joined #yosys18:01
*** fsasm has quit IRC18:06
*** kuldeep has joined #yosys18:07
*** vidbina has quit IRC20:59
*** craigo has joined #yosys21:06
*** stzsch has joined #yosys22:37
*** Noname_Matt has quit IRC23:13
*** emeb has joined #yosys23:27
*** forksand has quit IRC23:49

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