aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-25 00:32:54 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-25 00:32:54 +0100
commita921347d7e4ceb212021599469e38c5ac9e19598 (patch)
tree1268231267ce58f9a1d8d6055586be67ec54b649 /README.md
parent076d85eaeeeb5ca37cfa6836cb8dd3c5368cf424 (diff)
downloadqtmips-a921347d7e4ceb212021599469e38c5ac9e19598.tar.gz
qtmips-a921347d7e4ceb212021599469e38c5ac9e19598.tar.bz2
qtmips-a921347d7e4ceb212021599469e38c5ac9e19598.zip
Change serial port peripheral to match SPIM registers definition.
Still Tx only and keep 0xffffc000 base to allows single instruction LW and SW access. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'README.md')
-rw-r--r--README.md32
1 files changed, 21 insertions, 11 deletions
diff --git a/README.md b/README.md
index 7235409..66ed7e5 100644
--- a/README.md
+++ b/README.md
@@ -90,19 +90,29 @@ Peripherals
The simulator implements emulation of two peripherals for now.
The firs is simple serial port (UART) which transmission
-(Tx) support only for now. It provides two registers, the
-first is status port. Bit 0 is reserved for notification
-that UART is busy and cannot accept next character.
-The second register is actual Tx buffer. The LSB byte
-of writtent word is transmitted to terminal window.
-Definition of peripheral base address and registers
-offsets follows.
-
+(Tx) support only for now. Actual version implements only
+two registers, the 'SERP_TX_ST_REG' is trasmit status register.
+Bit 0 signals by value 1 that UART is ready and can
+accept next character to be sent.
+The second register 'SERP_TX_DATA_REG' is actual Tx buffer.
+The LSB byte of writtent word is transmitted to terminal
+window. Definition of peripheral base address and registers
+offsets follows including reserve for the future Rx port
+implementation.
```
#define SERIAL_PORT_BASE 0xffffc000
-#define SERP_ST_REG_o 0x00
-#define SERP_ST_REG_TX_BUSY_m 0x1
-#define SERP_TX_REG_o 0x04
+
+#define SERP_RX_ST_REG_o 0x00
+#define SERP_RX_ST_REG_READY_m 0x1
+#define SERP_RX_ST_REG_IE_m 0x2
+
+#define SERP_RX_DATA_REG_o 0x04
+
+#define SERP_TX_ST_REG_o 0x08
+#define SERP_TX_ST_REG_READY_m 0x1
+#define SERP_TX_ST_REG_IE_m 0x2
+
+#define SERP_TX_DATA_REG_o 0x0c
```
The another peripheral allows to set three byte values