Skip to content

Commit 2e94563

Browse files
committed
Rebase and fix decode pattern
1 parent a36bb1d commit 2e94563

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/main/scala/MemoryIOManager.scala

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -91,26 +91,8 @@ 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
9594
io.SysconPort.Address := readAddress(11, 0)
9695
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)
11496
}
11597

11698
/* --- UART0 --- */

0 commit comments

Comments
 (0)