Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Uart

UART 送受信 (8N1)

  • TX: tx_stream から 1 バイト受け取り LSB first で送出する
  • RX: 2FF 同期 + start bit 中央から 1 ビット周期ごとの中央サンプリング. 受信完了で即 valid を立てて次フレームに備えるノンブロッキング供給 (未消費のまま次バイトが完了した場合は旧バイトを上書き)

Parameters


InClkFreq u32 入力クロック周波数 [Hz]
BaudRate u32 ボーレート [bps]

Ports


i_clk input clock クロック
i_rst input reset リセット
uart_tx output logic TX ライン (idle High)
uart_rx input logic RX ライン (非同期入力,内部で 2FF 同期)
tx_stream modport stream_if sink 送信データ入力
rx_stream modport stream_if source 受信データ出力 (ノンブロッキング)