clifford changed the topic of #yosys to: Yosys Open SYnthesis Suite: http://www.clifford.at/yosys/ -- Channel Logs: https://irclog.whitequark.org/yosys
promach_ has joined #yosys
xerpi has quit [Quit: Leaving]
X-Scale has quit [Ping timeout: 260 seconds]
m_t has quit [Quit: Leaving]
X-Scale has joined #yosys
promach_ has quit [Quit: WeeChat 2.2]
maartenBE has left #yosys ["Leaving"]
maartenBE has joined #yosys
altenius has joined #yosys
emeb has quit [Quit: Leaving.]
digshadow has quit [Ping timeout: 244 seconds]
AlexDaniel has quit [Read error: Connection reset by peer]
AlexDaniel has joined #yosys
AlexDaniel has quit [Changing host]
AlexDaniel has joined #yosys
digshadow has joined #yosys
pie_ has quit [Remote host closed the connection]
pie_ has joined #yosys
promach has quit [Quit: WeeChat 2.3-dev]
m_w has quit [Read error: Connection reset by peer]
m_w has joined #yosys
pie_ has quit [Ping timeout: 248 seconds]
promach has joined #yosys
leviathan has joined #yosys
leviathan has quit [Read error: Connection reset by peer]
leviathanch has joined #yosys
altenius has quit [Ping timeout: 256 seconds]
xerpi has joined #yosys
GuzTech has joined #yosys
dys has quit [Ping timeout: 260 seconds]
m_w has quit [Ping timeout: 256 seconds]
m_w has joined #yosys
kraiskil has joined #yosys
<mattvenn> ZipCPU: what's a word op?
<mattvenn> operating on a whole bus at once?
fsasm has joined #yosys
fsasm has quit [Quit: Leaving]
fsasm has joined #yosys
<ZipCPU> Yes. For example, reg [15:0] a; always @(posedge i_clk) if (reset) a <= 0; else a <= a+ 1;
<ZipCPU> The other thing I like about Verilator is the ease of mixing it with C++. But that's another story.
<ZipCPU> mattvenn: Hopefully that answers your question.
<mattvenn> thanks
digshadow has quit [Quit: Leaving.]
digshadow has joined #yosys
keesj has quit [Ping timeout: 240 seconds]
leviathanch has quit [Remote host closed the connection]
leviathan has joined #yosys
leviathan has quit [Remote host closed the connection]
leviathan has joined #yosys
leviathan has quit [Remote host closed the connection]
xerpi has quit [Quit: Leaving]
leviathan has joined #yosys
leviathan has quit [Client Quit]
vup has quit [Quit: The Lounge - https://thelounge.github.io]
vup has joined #yosys
kraiskil has quit [Ping timeout: 260 seconds]
kraiskil has joined #yosys
kraiskil has quit [Ping timeout: 265 seconds]
kraiskil has joined #yosys
m_t has joined #yosys
lutsabound has joined #yosys
altenius has joined #yosys
leviathan has joined #yosys
m_w has quit [Ping timeout: 248 seconds]
m_w has joined #yosys
promach_ has joined #yosys
<promach_> ZipCPU: is it possible that yosys could interpret a negative edge as posedge ?
<ZipCPU> Not likely.
<promach_> Can I show you the trace which illustrates the opposite ?
kraiskil has quit [Ping timeout: 255 seconds]
<ZipCPU> Sure
<ZipCPU> But make sure you explain it as well.
<promach_> ZipCPU: cnt is not 0 for smt_step >= 149
<promach_> assertion at line 299
<promach_> I am referring this with reference to rx_clk
<ZipCPU> What sets cnt?
fsasm has quit [Ping timeout: 240 seconds]
<ZipCPU> Oh, and is your repo up to date?
<promach_> ZipCPU: yes
<tpb> Title: UART/test_UART.v at development · promach/UART · GitHub (at github.com)
<ZipCPU> Lol
<ZipCPU> You are setting cnt on the positive edge of tx_clk
<ZipCPU> So, ... it changes on the positive edge of the tx_clk
<promach_> I would say that this is not a problem at all
<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.
<ZipCPU> Well, I suppose it is a problem .... just not yosys' problem
<promach_> and yosys seems to interpret posedge rx_clk differently
m_w has quit [Ping timeout: 240 seconds]
<ZipCPU> Differently?
emeb has joined #yosys
<promach_> yes
<promach_> see smt_step=148
<promach_> yosys should have executed the assertion at step 148 instead of 149
<ZipCPU> You mean the assertion that eventually failed, the one on line 299?
m_w has joined #yosys
<promach_> YES
<ZipCPU> How are you running this? Your makefile only runs 10 steps
GuzTech has quit [Remote host closed the connection]
<ZipCPU> I just tried running your code, and it passed with an induction length of 90.
<ZipCPU> I must be looking at the wrong branch
AlexDaniel has quit [Remote host closed the connection]
AlexDaniel has joined #yosys
<promach_> sby -f UART.sby
<promach_> ZipCPU
<promach_> use development branch
<promach_> passed with an induction length of 90 ???
kraiskil has joined #yosys
<ZipCPU> Ok, so .... the rx_clk rises and an assertion depending upon the rise of rx_clk fails. Not sure the issue here.
<promach_> ZipCPU: are you getting assertion failure at line 299 ?
<promach_> I mean the trace
<promach_> did you have your own trace now ?
<ZipCPU> Yes. It also failed at 299
<ZipCPU> You've also got a problem with your had_been_enabled logic. It fails at line 440.
<ZipCPU> Looks like a reset is messing that up.
<ZipCPU> promach_: You don't have your resets properly tied together, now, do you?
<promach_> tied together ? that is not realistic in real life
<promach_> there must be clock phase difference between tx_clk and rx_clk in real life
<ZipCPU> I just got a failing trace from your code where the rx reset was held at one for the entire trace ...
<ZipCPU> When the tx reset was asserted, the entire design failed.
<promach_> we have different trace
<promach_> my reset_tx is not asserted at all in my trace
<promach_> and reset_rx is not held at one for the entire trace
<ZipCPU> I set the induction depth to 250 to get that trace. It seems to happen with a length of 200 as well.
<promach_> ok, let me solve that line 440 first
<promach_> strange, I have passed induction at length 200 before
seldridge has joined #yosys
dys has joined #yosys
promach_ has quit [Ping timeout: 256 seconds]
pie_ has joined #yosys
kraiskil has quit [Ping timeout: 265 seconds]
AlexDaniel has quit [Ping timeout: 240 seconds]
leviathan has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
m_w has quit [Ping timeout: 264 seconds]
m_w has joined #yosys
pie_ has quit [Read error: Connection reset by peer]
pie__ has joined #yosys
pie__ has quit [Remote host closed the connection]
kraiskil has joined #yosys
lutsabound has quit [Quit: Connection closed for inactivity]
kraiskil has quit [Ping timeout: 256 seconds]
xerpi has joined #yosys
xerpi has quit [Remote host closed the connection]
xerpi has joined #yosys
emeb has quit [Ping timeout: 256 seconds]
emeb has joined #yosys
AlexDaniel has joined #yosys
lutsabound has joined #yosys
seldridge has quit [Ping timeout: 240 seconds]
emeb has quit [Quit: Leaving.]
kraiskil has joined #yosys
tpb has quit [Remote host closed the connection]
tpb has joined #yosys