Five EmbedDev logo Five EmbedDev

An Embedded RISC-V Blog
RISC-V External Debug Support , task_group_vote-4-g4e0bb0f 2019/03/25
Address Name Page
0x34 Serial Control and Status (sercs)
0x35 Serial TX Data (sertx)
0x36 Serial RX Data (serrx)

Serial Control and Status (sercs, at 0x34)

[sercs] If serialcountis 0, this register is not present.

image

image

image

Field Description Access Reset
[serialcount] |serialcount| Number of supported serial ports. R Preset
[serial] |serial| Select which serial port is accessed by serrxand sertx. R/W 0
[error0] |error0| 1 when the debugger-to-core queue for serial port 0 has over or underflowed. This bit will remain set until it is reset by writing 1 to this bit. R/W1C 0
[valid0] |valid0| 1 when the core-to-debugger queue for serial port 0 is not empty. R 0
[full0] |full0| 1 when the debugger-to-core queue for serial port 0 is full. R 0

Serial TX Data (sertx, at 0x35)

[sertx] If serialcountis 0, this register is not present.

This register provides access to the write data queue of the serial port selected by serialin sercs.

If the error bit is not set and the queue is not full, a write to this register adds the written data to the core-to-debugger queue. Otherwise the error bit is set and the write returns error.

A read to this register returns the last data written.

image

Serial RX Data (serrx, at 0x36)

[serrx] If serialcountis 0, this register is not present.

This register provides access to the read data queues of the serial port selected by serialin sercs.

If the error bit is not set and the queue is not empty, a read from this register reads the oldest entry in the debugger-to-core queue, and removes that entry from the queue. Otherwise the error bit is set and the read returns error.

This entire register is read-only.

image