Skip to content

Commit a36bb1d

Browse files
sequencercarlosedp
authored andcommitted
bump
1 parent bf641ee commit a36bb1d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/main/scala/MemoryIOManager.scala

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,26 @@ class MemoryIOManager(bitWidth: Int = 32, sizeBytes: Long = 1024) extends Module
9191

9292
/* --- Syscon --- */
9393
when(readAddress(31, 12) === 0x0000_1L.U && io.MemoryIOPort.readRequest) {
94+
<<<<<<< HEAD
9495
io.SysconPort.Address := readAddress(11, 0)
9596
dataOut := io.SysconPort.DataOut
97+
=======
98+
// Dummy output - (0x0000_1000)
99+
when(readAddress(11, 0) === 0x0L.U)(dataOut := 0xbaad_cafeL.U)
100+
// Clock frequency - (0x0000_1008)
101+
when(readAddress(11, 0) === 0x8L.U)(dataOut := clockFreq.asUInt)
102+
// Has UART0 - (0x0000_1010)
103+
when(readAddress(11, 0) === 0x10L.U)(dataOut := 1.U)
104+
// Has GPIO0 - (0x0000_1018)
105+
when(readAddress(11, 0) === 0x18L.U)(dataOut := 1.U)
106+
// Has PWM0 - (0x0000_1020)
107+
when(readAddress(11, 0) === 0x20L.U)(dataOut := 0.U)
108+
// Has Timer0 - (0x0000_1024)
109+
when(readAddress(11, 0) === 0x24L.U)(dataOut := 1.U)
110+
// Num GPIOs in GPIO0 - (0x0000_1028)
111+
when(readAddress(11, 0) === 0x28L.U)(dataOut := numGPIO0.asUInt)
112+
113+
>>>>>>> 5be2cdb (bump)
96114
}
97115

98116
/* --- UART0 --- */

0 commit comments

Comments
 (0)