Skip to content

Commit 417bb38

Browse files
T-K-233mihai-c-tudor
authored andcommitted
FIX: change default UART fifo depth
1 parent cd7f61a commit 417bb38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

generators/chipyard/src/main/scala/config/fragments/PeripheralFragments.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ class WithNoUART extends Config((site, here, up) => {
6565
* @param address the address of the UART device
6666
* @param baudrate the baudrate of the UART device
6767
*/
68-
class WithUART(baudrate: BigInt = 115200, address: BigInt = 0x10020000) extends Config ((site, here, up) => {
68+
class WithUART(baudrate: BigInt = 115200, address: BigInt = 0x10020000, txEntries: Int = 8, rxEntries: Int = 8) extends Config ((site, here, up) => {
6969
case PeripheryUARTKey => up(PeripheryUARTKey) ++ Seq(
70-
UARTParams(address = address, nTxEntries = 256, nRxEntries = 256, initBaudRate = baudrate))
70+
UARTParams(address = address, nTxEntries = txEntries, nRxEntries = rxEntries, initBaudRate = baudrate))
7171
})
7272

73+
// @deprecated("Use WithUART instead of WithUARTFIFOEntries", "chipyard v1.10")
7374
class WithUARTFIFOEntries(txEntries: Int, rxEntries: Int) extends Config((site, here, up) => {
7475
case PeripheryUARTKey => up(PeripheryUARTKey).map(_.copy(nTxEntries = txEntries, nRxEntries = rxEntries))
7576
})

0 commit comments

Comments
 (0)