Repository navigation
Conversation
228beb2 to
c95bf72
Compare
|
@marnovandermaas Please check the RTL and also skim the docs change. @martin-velay Please check if the IIR behaviour change in the docs works for you. |
marnovandermaas
left a comment
There was a problem hiding this comment.
Some initial comments from me. Also god to update the README on the rx_timeout behaviour.
| ////////// | ||
|
|
||
| // State register | ||
| prim_sparse_fsm_flop #( |
There was a problem hiding this comment.
Do we need to set EnableAlertTriggerSVA to zero?
There was a problem hiding this comment.
No AFAIK, I've added a commit which changes this.
There was a problem hiding this comment.
On second thought this requires the new FSM to trigger an alert when there is an invalid FSM state, and also a mechanism to "or" together this with the alert from the OT UART core. Perhaps enabling alert is better left for a future PR. WDYT?
There was a problem hiding this comment.
Without it AssertConnected_A fails at 1 ps in Xcelium and VCS. The pre_dv TB passes only because Verilator uses the dummy assertion macros.
b53107f to
9afeeba
Compare
martin-velay
left a comment
There was a problem hiding this comment.
Looks good overall thanks
Another comment: README.md still lists rx_timeout as an always-inactive interrupt output.
604793d to
3f8aef7
Compare
Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
c7186da to
8109a3c
Compare
- RBR read now clears any pending character timeout interrupt - Enabling ERBFI enables rx_timeout interrupt in the OT UART core - IIR[3] is asserted only when the character tiemout interrupt is active and there is no other higher priority interrupt - Resetting the RCVR FIFO clears any pending character timeout interrupt - When changing the parity enable in LCR, the timeout bit time duration of the OT UART core is automatically updated to reflect 4 character times Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
8109a3c to
40b7514
Compare
marnovandermaas
left a comment
There was a problem hiding this comment.
Some minor comments, also there is a typo "tiemout" in the second commit message. I haven't tested this but happy for you to merge it if you are happy with it.
| THRReqSt = 10'h11, | ||
| THRReqWaitSt = 10'h12, | ||
| THRRespSt = 10'h13, |
There was a problem hiding this comment.
Mixing sparse and non-sparse state space encoding. Pick one.
| if (req_step_q == 0) begin | ||
| uart_tl_o.a_opcode = tlul_pkg::Get; | ||
| uart_tl_o.a_address = top_pkg::TL_AW'(uart_reg_pkg::UART_RDATA_OFFSET); | ||
| uart_tl_o.a_data = '1; |
There was a problem hiding this comment.
Should this be all zeroes or is there a reason you chose all ones?
There was a problem hiding this comment.
This matches BlankedAData in tlul_pkg which is all ones for security reasons.
Depends on #12 (merged) to be merged first, only the last commit is new.
Closes #9.