*** tpb has joined #yosys | 00:00 | |
*** promach_ has joined #yosys | 00:18 | |
*** xerpi has quit IRC | 00:21 | |
*** X-Scale has quit IRC | 00:32 | |
*** m_t has quit IRC | 00:33 | |
*** X-Scale has joined #yosys | 00:34 | |
*** promach_ has quit IRC | 01:37 | |
*** maartenBE has left #yosys | 01:47 | |
*** maartenBE has joined #yosys | 01:48 | |
*** altenius has joined #yosys | 01:56 | |
*** emeb has quit IRC | 02:12 | |
*** digshadow has quit IRC | 02:30 | |
*** AlexDaniel has quit IRC | 02:33 | |
*** AlexDaniel has joined #yosys | 02:34 | |
*** AlexDaniel has joined #yosys | 02:35 | |
*** digshadow has joined #yosys | 03:47 | |
*** pie_ has quit IRC | 04:29 | |
*** pie_ has joined #yosys | 04:29 | |
*** promach has quit IRC | 04:35 | |
*** m_w has quit IRC | 04:40 | |
*** m_w has joined #yosys | 04:50 | |
*** pie_ has quit IRC | 05:35 | |
*** promach has joined #yosys | 05:38 | |
*** leviathan has joined #yosys | 05:39 | |
*** leviathan has quit IRC | 05:41 | |
*** leviathanch has joined #yosys | 05:41 | |
*** altenius has quit IRC | 06:02 | |
*** xerpi has joined #yosys | 06:27 | |
*** GuzTech has joined #yosys | 07:13 | |
*** dys has quit IRC | 07:19 | |
*** m_w has quit IRC | 07:41 | |
*** m_w has joined #yosys | 07:43 | |
*** kraiskil has joined #yosys | 07:55 | |
mattvenn | ZipCPU: what's a word op? | 08:15 |
---|---|---|
mattvenn | operating on a whole bus at once? | 08:16 |
*** fsasm has joined #yosys | 09:20 | |
*** fsasm has quit IRC | 09:30 | |
*** fsasm has joined #yosys | 09:30 | |
ZipCPU | Yes. For example, reg [15:0] a; always @(posedge i_clk) if (reset) a <= 0; else a <= a+ 1; | 10:17 |
ZipCPU | The other thing I like about Verilator is the ease of mixing it with C++. But that's another story. | 10:19 |
ZipCPU | mattvenn: Hopefully that answers your question. | 10:19 |
mattvenn | thanks | 10:31 |
*** digshadow has quit IRC | 10:47 | |
*** digshadow has joined #yosys | 10:48 | |
*** keesj has quit IRC | 11:02 | |
*** leviathanch has quit IRC | 11:05 | |
*** leviathan has joined #yosys | 11:12 | |
*** leviathan has quit IRC | 11:18 | |
*** leviathan has joined #yosys | 11:19 | |
*** xerpi has quit IRC | 11:21 | |
*** leviathan has joined #yosys | 11:22 | |
*** vup has quit IRC | 11:39 | |
*** vup has joined #yosys | 11:39 | |
*** kraiskil has quit IRC | 12:16 | |
*** kraiskil has joined #yosys | 12:38 | |
*** kraiskil has quit IRC | 12:44 | |
*** kraiskil has joined #yosys | 12:50 | |
*** m_t has joined #yosys | 12:57 | |
*** lutsabound has joined #yosys | 13:11 | |
*** altenius has joined #yosys | 13:11 | |
*** leviathan has joined #yosys | 13:56 | |
*** m_w has quit IRC | 14:01 | |
*** m_w has joined #yosys | 14:02 | |
*** promach_ has joined #yosys | 14:04 | |
promach_ | ZipCPU: is it possible that yosys could interpret a negative edge as posedge ? | 14:47 |
ZipCPU | Not likely. | 14:48 |
promach_ | Can I show you the trace which illustrates the opposite ? | 14:50 |
*** kraiskil has quit IRC | 14:51 | |
ZipCPU | Sure | 14:53 |
ZipCPU | But make sure you explain it as well. | 14:53 |
promach_ | https://i.imgur.com/VTw7bZu.png | 15:05 |
promach_ | ZipCPU: cnt is not 0 for smt_step >= 149 | 15:05 |
promach_ | assertion at line 299 | 15:06 |
promach_ | I am referring this with reference to rx_clk | 15:06 |
ZipCPU | What sets cnt? | 15:06 |
*** fsasm has quit IRC | 15:06 | |
ZipCPU | Oh, and is your repo up to date? | 15:07 |
promach_ | ZipCPU: yes | 15:07 |
promach_ | https://github.com/promach/UART/blob/development/rtl/test_UART.v#L299 | 15:08 |
tpb | Title: UART/test_UART.v at development · promach/UART · GitHub (at github.com) | 15:08 |
ZipCPU | Lol | 15:09 |
ZipCPU | You are setting cnt on the positive edge of tx_clk | 15:09 |
ZipCPU | So, ... it changes on the positive edge of the tx_clk | 15:09 |
promach_ | I would say that this is not a problem at all | 15:09 |
ZipCPU | You are checking cnt on the positive edge of rx_clk. tx_clk and rx_clk are out of phase by 180 degrees, hence the appearance of a negative edge issue. | 15:10 |
ZipCPU | Well, I suppose it is a problem .... just not yosys' problem | 15:10 |
promach_ | and yosys seems to interpret posedge rx_clk differently | 15:10 |
*** m_w has quit IRC | 15:11 | |
ZipCPU | Differently? | 15:13 |
*** emeb has joined #yosys | 15:14 | |
promach_ | yes | 15:14 |
promach_ | see smt_step=148 | 15:15 |
promach_ | yosys should have executed the assertion at step 148 instead of 149 | 15:15 |
ZipCPU | You mean the assertion that eventually failed, the one on line 299? | 15:18 |
*** m_w has joined #yosys | 15:18 | |
promach_ | YES | 15:19 |
ZipCPU | How are you running this? Your makefile only runs 10 steps | 15:21 |
*** GuzTech has quit IRC | 15:24 | |
ZipCPU | I just tried running your code, and it passed with an induction length of 90. | 15:25 |
ZipCPU | I must be looking at the wrong branch | 15:25 |
*** AlexDaniel has quit IRC | 15:26 | |
*** AlexDaniel has joined #yosys | 15:27 | |
promach_ | sby -f UART.sby | 15:38 |
promach_ | ZipCPU | 15:38 |
promach_ | use development branch | 15:43 |
promach_ | passed with an induction length of 90 ??? | 15:43 |
*** kraiskil has joined #yosys | 15:46 | |
ZipCPU | Ok, so .... the rx_clk rises and an assertion depending upon the rise of rx_clk fails. Not sure the issue here. | 15:48 |
promach_ | ZipCPU: are you getting assertion failure at line 299 ? | 15:49 |
promach_ | I mean the trace | 15:49 |
promach_ | did you have your own trace now ? | 15:50 |
ZipCPU | Yes. It also failed at 299 | 15:50 |
ZipCPU | You've also got a problem with your had_been_enabled logic. It fails at line 440. | 15:58 |
ZipCPU | Looks like a reset is messing that up. | 15:58 |
ZipCPU | promach_: You don't have your resets properly tied together, now, do you? | 15:59 |
promach_ | tied together ? that is not realistic in real life | 15:59 |
promach_ | there must be clock phase difference between tx_clk and rx_clk in real life | 16:00 |
ZipCPU | I just got a failing trace from your code where the rx reset was held at one for the entire trace ... | 16:00 |
ZipCPU | When the tx reset was asserted, the entire design failed. | 16:00 |
promach_ | we have different trace | 16:01 |
promach_ | my reset_tx is not asserted at all in my trace | 16:02 |
promach_ | and reset_rx is not held at one for the entire trace | 16:03 |
ZipCPU | I set the induction depth to 250 to get that trace. It seems to happen with a length of 200 as well. | 16:03 |
promach_ | ok, let me solve that line 440 first | 16:06 |
promach_ | strange, I have passed induction at length 200 before | 16:06 |
*** seldridge has joined #yosys | 16:56 | |
*** dys has joined #yosys | 17:21 | |
*** promach_ has quit IRC | 17:34 | |
*** pie_ has joined #yosys | 18:03 | |
*** kraiskil has quit IRC | 18:10 | |
*** AlexDaniel has quit IRC | 18:41 | |
*** leviathan has quit IRC | 18:54 | |
*** m_w has quit IRC | 18:58 | |
*** m_w has joined #yosys | 19:05 | |
*** pie_ has quit IRC | 19:17 | |
*** pie__ has joined #yosys | 19:17 | |
*** kraiskil has joined #yosys | 19:46 | |
*** lutsabound has quit IRC | 20:01 | |
*** kraiskil has quit IRC | 20:12 | |
*** xerpi has joined #yosys | 20:18 | |
*** xerpi has joined #yosys | 20:19 | |
*** emeb has quit IRC | 20:40 | |
*** emeb has joined #yosys | 20:54 | |
*** AlexDaniel has joined #yosys | 21:24 | |
*** lutsabound has joined #yosys | 22:38 | |
*** seldridge has quit IRC | 22:56 | |
*** emeb has quit IRC | 23:06 | |
*** kraiskil has joined #yosys | 23:34 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!