mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-24 21:44:29 +00:00
Reset MSR on read
This commit is contained in:
parent
c29a60c198
commit
d22587090b
@ -206,6 +206,8 @@ module uartPC16550D(
|
||||
// Modem Status Register (8.6.8)
|
||||
if (~MEMWb & (A == 3'b110))
|
||||
MSR <= #1 Din[3:0];
|
||||
else if (~MEMRb & (A == 3'b110))
|
||||
MSR <= #1 4'b0; // Reading MSR clears the flags in MSR bits 3:0
|
||||
else begin
|
||||
MSR[0] <= #1 MSR[0] | CTSb2 ^ CTSbsync; // Delta Clear to Send
|
||||
MSR[1] <= #1 MSR[1] | DSRb2 ^ DSRbsync; // Delta Data Set Ready
|
||||
|
Loading…
Reference in New Issue
Block a user