We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e84bb75 commit eb53bbaCopy full SHA for eb53bba
rtl/BaudRateGen/BaudRateGen.sv
@@ -36,7 +36,7 @@ module BaudRateGen #(
36
rxRate = rate[txWidth-1:rxShift];
37
offset = rxRate - ((rxRate >> 1) + 1);
38
39
- totalWait = rate - {rxRate, 4'b0};
+ totalWait = txWidth'(rate[rxShift-1:0]);
40
preWait = rate - (totalWait >> 1);
41
postWait = rate - preWait + txWidth'(rate[0]) + txWidth'(offset);
42
inWait = txCount > preWait || txCount < postWait;
0 commit comments