📄 readme
字号:
This is a minimal MIPS64 bus module, designed for those who don't carefor anything more substantial. The TCL interface is as follows:memory amount of RAM in megabytes. The RAM is mapped at the addresses [0, {memory} * 2**20 - 1]. The maximum supported value is (500) to leave room for the device banks.dev0 the boot devicedev1 the first devicedev2 the second devicedev3 the third deviceThe programming interface is just as simple. The interrupt map is: 0 bus interrupt (write error) 1 system consoleInterrupts 3, 4 and 5 are available for use by other devices.The physical memory map is: 0 memory {memory} * 2**20 bus error 0x1F400000 control registers + 0 [32 bits, ro] memory size in megabytes + 8 [8 bits] console data + 16 [32 bits] status register (see below) + 24 [32 bits] bus error address 0x1F600000 dev3 0x1F800000 dev2 0x1FA00000 dev1 0x1FC00000 dev0 0x1FE00000 bus errorThe regions marked `bus error' cause a bus interrupt when written anda bus error when read.The status register has the following layout: bits 0..1 interrupt enable mask 8..9 interrupt cause bitsAll of these are read/write. Except for bits 8..9, these bits arenever modified by the module. Bits 8..9 are never cleared by themodule (they are treated as "sticky" bits.) Setting bits 8..9 insoftware doesn't do anything (in particular, it doesn't raise thecorresponding interrupt.)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -