Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions logikbench/blocks/uart/rtl/uart_rfifo.v
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,12 @@ module uart_rfifo #(

// Additional logic for detection of error conditions (parity and framing) inside the FIFO
// for the Line Status Register bit 7
reg error_det;
reg [FIFO_DEPTH-1:0] error_det;
always @(*) begin
error_det = 1'b0;
for (i = 0; i < FIFO_DEPTH; i = i + 1) begin
error_det |= |fifo[i];
error_det[i] = |fifo[i];
end
end
assign error_bit = error_det;
assign error_bit = |error_det;

endmodule
Loading