sifive / freedom

Source files for SiFive's Freedom platforms
Apache License 2.0
1.11k stars 284 forks source link

How to add another UART? #26

Closed lsanmu closed 7 years ago

lsanmu commented 7 years ago

Hi all, I want to how add another UART device to U500VC707DevKitSystem. I know there is a PeripheryUART in U500 code, which the addr is 0x54000000. If I want to add another UART device, do I need to implement the another PeripheryUART at device directory, which connect to peripheryBus? Or, I only need with one more PeripheryUART in U500VC707DevKitSystem? Everything can be useful! Thank you so much!

mwachs5 commented 7 years ago

You can just add another one to this list: https://github.com/sifive/freedom/blob/master/src/main/scala/unleashed/u500vc707devkit/Top.scala#L25

mwachs5 commented 7 years ago

As an example, the E300 Dev Kit already has 2 UARTS: https://github.com/sifive/freedom/blob/master/src/main/scala/everywhere/e300artydevkit/Top.scala#L33

lsanmu commented 7 years ago

@mwachs5 , Thanks for you useful reply. And, would you mind give me some advice to simulate the generated verilog code using Cadence ncsim.