Skip to content

rocksavagetech/uart

 
 

Repository files navigation

Uart Module

Dependancies

Setup

git clone [url]
cd [folder]
# This step can take a long time
# This is due to building system-c and verilator from source with clang
# It should only take a long time the first time
sh dev_shell.sh 

Usage

Note: All build artifacts will be generated in the "out" folder

Generate Verilog: make verilog

Run Tests: make test

Generate Coverage: make cov

Run Synthesis: make synth

Run STA: make sta

Integrating with Other Modules

To configure the uart, create an instance of UartParams with the desired parameters.

val uartParams = UartParams(
  dataWidth = 32,
  addressWidth = 32,
  wordWidth = 8,
  maxOutputBits = 8,
  syncDepth = 2,
  bufferSize = 1024,
  maxBaudRate = 25_000_000,
  maxClockFrequency = 25_000_000,
  coverage = true,
  verbose = true
)

Instantiating the Uart Module

Instantiate the Uart module with the defined parameters.

val uart = Module(new Uart(uartParams))

More Info

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 92.5%
  • Nix 3.8%
  • Shell 1.7%
  • Python 1.1%
  • Other 0.9%