Add sources

This commit is contained in:
Nikolay Puzanov
2023-06-11 16:15:40 +03:00
parent 82f90610fb
commit 686d12bf81
48 changed files with 23261 additions and 0 deletions

30
source/io_reg.txt Normal file
View File

@@ -0,0 +1,30 @@
Register map of IO_REG (base: 0x1000000)
========================================
| Offset | Name | Description |
|------------+---------+----------------------|
| 0x00000000 | CTRL | Control register |
| 0x00000004 | CONSOLE | Virtual console port |
CTRL Register (0x00000000)
--------------------------
Control register
| Bits | Name | Mode | Reset | Description |
|------+------+------+-------+-------------|
| 0 | STOP | WO | 0 | |
CONSOLE Register (0x00000004)
-----------------------------
Virtual console port
| Bits | Name | Mode | Reset | Description |
|------+-------+------+-------+---------------------------------|
| 9 | VALID | RO | 0 | Symbol in DATA is valid |
| 8 | SEND | HS | 0 | Write 1 to send symbol |
| 7:0 | DATA | RW | 0 | Read/write char from/to console |