Add write flag and reset logic for read flag
This commit is contained in:
@@ -54,7 +54,12 @@ always_ff @(posedge clk_50) begin
|
|||||||
end
|
end
|
||||||
|
|
||||||
always_ff @(negedge clk) begin
|
always_ff @(negedge clk) begin
|
||||||
|
status[1] <= tx_busy | tx_en;
|
||||||
|
|
||||||
status[0] <= status[0] | rx_data_valid;
|
status[0] <= status[0] | rx_data_valid;
|
||||||
|
if (cs & ~addr & rwb) begin
|
||||||
|
status[0] <= 0;
|
||||||
|
end
|
||||||
|
|
||||||
if (cs & ~rwb) begin
|
if (cs & ~rwb) begin
|
||||||
case (addr)
|
case (addr)
|
||||||
|
|||||||
Reference in New Issue
Block a user