马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
module uart_top
(
// Global signal definition
input rst ,
input sys_clk ,
input pci_clk ,
input pci_wren ,
input [7:0] pci_wrdat ,
input pci_rden ,
output [7:0] pci_rddat ,
// Local bus register
input SEND_CMD ,
input RCV_EN ,
output RCV_IRQ ,
input PARITY_BIT_EN ,
input PARITY_SEL ,
output PARITY_ERROR ,
//output uart_ok ,
output xmit_busy ,
output xmit_ok ,
output xmit_fifo_empty ,
output rcv_fifo_empty ,
// Uart interface
input rxd ,
output txd
);
这是使用依元素学习板来实现 用到了spartan的芯片 uart调用了fifo 还有一些寄存器。
从代码中看到的Local bus register ,不知道怎么使用。
还有校验功能 在哪里会实现呢!
谢谢 发现会再补充! |