*** tpb has joined #yosys | 00:00 | |
*** lutsabound has joined #yosys | 00:43 | |
*** Degi_ has joined #yosys | 01:13 | |
*** Degi has quit IRC | 01:15 | |
*** Degi_ is now known as Degi | 01:15 | |
*** cr1901_modern has quit IRC | 02:33 | |
*** cr1901_modern has joined #yosys | 02:34 | |
promach3 | yosys does not support $ceil ? | 02:48 |
---|---|---|
promach3 | yosys has the following error for https://github.com/promach/DDR/blob/main/ddr3_memory_controller.v#L1061 | 02:52 |
promach3 | ERROR: Found error in internal cell \ddr3_memory_controller.$ge$ddr3_memory_controller.sv:1061$73 ($ge) at kernel/rtlil.cc:991: | 02:52 |
*** aquijoule_ has joined #yosys | 03:30 | |
*** richbridger has quit IRC | 03:32 | |
*** lutsabound has quit IRC | 03:56 | |
*** m4ssi has joined #yosys | 06:02 | |
*** kraiskil has joined #yosys | 06:07 | |
*** emeb_mac has quit IRC | 07:21 | |
*** kraiskil has quit IRC | 08:29 | |
*** kraiskil has joined #yosys | 09:51 | |
mwk | promach3: well you found a bug | 10:17 |
mwk | https://github.com/YosysHQ/yosys/issues/2718 | 10:17 |
mwk | as a workaround, I think assigning the constant to an intermediate const-valued wire would help | 10:18 |
*** proteusguy has quit IRC | 10:31 | |
*** proteusguy has joined #yosys | 10:45 | |
promach3 | mwk: what do you mean by **intermediate** const-valued wire ? | 11:10 |
*** kraiskil has quit IRC | 11:22 | |
mwk | promach3: actually now that I look at it, I think the comparison isn't synthesizable verilog in the first place | 11:49 |
* promach3 < https://matrix.org/_matrix/media/r0/download/matrix.org/bvPlxqpuksYtjrBbBfnxTjad/message.txt > | 11:50 | |
mwk | because it involves a floating point comparison | 11:50 |
promach3 | yup, your suggested countermeasure also does not work | 11:50 |
promach3 | <mwk "because it involves a floating p"> I suppose this is also a bug ? | 11:51 |
mwk | and the proper fix would be to write "localparam [31:0] TIME_TRFC = $ceil(...);" | 11:51 |
mwk | so that it'll be cast to integer | 11:51 |
mwk | no, this is not a bug | 11:51 |
mwk | it's just that floating point operations are not synthesizable | 11:51 |
mwk | because they don't map to logic circuits without major effort | 11:52 |
promach3 | you mean add `[31:0]` ? | 11:52 |
mwk | yes | 11:52 |
promach3 | let me try | 11:52 |
mwk | and btw by intermediate wire I meant something like "wire [31:0] tmp = 2.0; assign O = A < tmp;" | 11:54 |
mwk | but adding the type directly on localparam is superior | 11:54 |
promach3 | ok, cool thanks mwk | 11:56 |
promach3 | mwk: ok, now I could pass yosys check without errors. How do I pass yosys synthesis result to Xilinx ISE for place-and-route for Spartan-6 ? | 12:02 |
mwk | there's an example in yosys tree | 12:03 |
mwk | https://github.com/YosysHQ/yosys/tree/master/examples/mimas2 | 12:03 |
mwk | you'll need to write your own UCF of course, but the same synthesis script should work | 12:04 |
mwk | (well, that and fix the part number) | 12:04 |
promach3 | ok, thanks mwk | 12:17 |
promach3 | mwk: are you familiar with DDR ? May I ask some advice on setting constraints for `DQ` and `DQS` signals ? | 12:25 |
promach3 | they are both `inout` signals | 12:26 |
*** srk has quit IRC | 13:35 | |
*** Kamilion has quit IRC | 14:06 | |
*** Kamilion has joined #yosys | 14:07 | |
*** kraiskil has joined #yosys | 14:09 | |
*** unkraut has quit IRC | 14:30 | |
*** unkraut has joined #yosys | 14:33 | |
*** AdamHorden has quit IRC | 14:42 | |
*** emeb has joined #yosys | 14:43 | |
promach3 | ok, found https://www.cnblogs.com/lelin/p/12652460.html | 14:45 |
tpb | Title: DDR接口时序实例 - 春风一郎 - 博客园 (at www.cnblogs.com) | 14:45 |
promach3 | mwk: Why the example you had given just now does not include SDC constraint file ? | 16:08 |
mwk | this is xilinx ISE, you generally use UCF constraints | 16:15 |
mwk | or at least they were enough for my little example | 16:15 |
*** cr1901_modern has quit IRC | 16:35 | |
*** cr1901_modern has joined #yosys | 16:35 | |
*** emeb_mac has joined #yosys | 18:03 | |
*** futarisIRCcloud has joined #yosys | 18:20 | |
*** FabM has joined #yosys | 18:38 | |
*** FabM has quit IRC | 19:15 | |
*** show1 has quit IRC | 19:35 | |
*** m4ssi has quit IRC | 19:43 | |
*** kraiskil has quit IRC | 19:52 | |
*** lf has quit IRC | 23:40 | |
*** lf has joined #yosys | 23:40 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!