Monday, 2019-11-11

*** tpb has joined #litex00:00
*** rohitksingh has quit IRC01:14
*** rohitksingh has joined #litex01:41
*** johnnyr has joined #litex02:25
*** freemint has joined #litex06:55
*** freemint has quit IRC06:59
*** _whitelogger has quit IRC07:27
*** _whitelogger has joined #litex07:30
*** freemint has joined #litex08:57
*** freemint has quit IRC09:31
*** _whitelogger has quit IRC11:03
*** _whitelogger has joined #litex11:06
*** johnnyr has quit IRC13:14
*** freemint has joined #litex15:29
*** freemint has quit IRC15:47
*** freemint has joined #litex16:23
*** CarlFK has quit IRC16:47
*** CarlFK has joined #litex17:11
*** freemint has quit IRC17:25
*** freemint has joined #litex17:25
scanakci@somlo: how do you try different frequencies when programming Rocket? I have a genesys2 board, and using genesys2.py in Litex to generate the bistream. I noticed that the clock is 300MhZ by default and want to set it to lower.17:28
scanakciI changed these two lines to 20MhZ but do not think it worked https://www.irccloud.com/pastebin/0S4h2R7e/17:28
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)17:28
scanakcihttps://www.irccloud.com/pastebin/YodpQ8ZO/I%20checked%20the%20top.xdc.%20It%20generates%20clk%20with%20period%205ns%20even%20after%20I%20modify%20the%20file.17:30
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)17:30
*** freemint has quit IRC17:33
*** CarlFK has quit IRC17:55
_florent_scanakci: you only need to modify sys_clk_freq parameter: https://github.com/enjoy-digital/litex/blob/master/litex/boards/targets/genesys2.py#L4718:28
tpbTitle: litex/genesys2.py at master · enjoy-digital/litex · GitHub (at github.com)18:28
_florent_this will configure the PLL to generate the specified sys_clk_freq18:29
somloskanakci: what _florent_ said :) I use e.g. "--sys-clk-freq=65e6" to request 65MHZ18:29
somlo_florent_: I just figured out that I *could* configure Rocket's mmio_axi port to be 32 bit wide, in which case Rocket will internally handle the data_width conversion18:32
somlothe interesting thing about that is that e.g. a 32-bit MMIO access will *not* result in a two-beat burst of 32bits each, with one of the beats strobed out18:33
somlorather, a single beat of 32 bits is issued18:33
*** ambro718 has joined #litex18:34
somlothis would have been good to know when I was struggling to figure out why adjacent 32bit registers were being clobbered :)18:34
somlohowever, I think I like the idea of 64bit MMIO registers on 64bit architectures, so I don't plan on taking advantage of this18:34
somlofeels like bumpging the csr/mmio LiteX bus width to 64bit when the CPU is a 64bit one should be the goal, instead.18:35
somloany thoughts ?18:35
_florent_somlo: yes 64-bit csr/mmio is probably better19:03
scanakcithanks!19:14
*** freemint has joined #litex20:05
*** freemint has quit IRC20:11
scanakci (ERROR: [Synth 8-6156] failed synthesizing module 'MMCME2_ADV' [/opt/Xilinx/Vivado/2019.1/scripts/rt/data/unisim_comp.v:39813]21:05
scanakci)21:05
scanakciSetting to 25 MHz caused this error. Are there some constraints when setting the frequency?21:06
scanakcidefault is 125MHz and I can generate the bitstream for that frequency21:07
scanakcisorry, setting to 20MHZ caused the issue. 25MHz looks working, at least did not get the same error.21:11
Findescanakci: likely this is because the MMCM can only generate clocks with particular ratios to each other21:15
Findethat would be my guess21:15
Findemay not be your exact issue though21:16
Findebut something I've had to deal with in the past when configuring MMCM IP in the Vivado GUI21:16
somloscanakci, Finde: same here, e.g. asking for 65MHz for litex+rocket on ecp5versa gives me an error (don't have it handy to cut'n'paste here, sorry)21:17
somlogoing with 64MHz works, as does trying for 6621:17
somloso I always wrote it off as "ok, some sort of ratio can't work out properly, wiggle around it a bit, close enough, move on"21:18
somlonever actually had a chance to investigate the gory details :)21:18
scanakci:) okay makes sense21:30
scanakci25 MHZ worked, so I am good for now21:30
*** freemint has joined #litex22:28
*** CarlFK has joined #litex23:22
*** freemint has quit IRC23:37

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