参考设计之二:串口测试 (VHDL源码顶层文件)
上一篇 / 下一篇 2008-06-10 23:43:36 / 个人分类:参考设计
-- 黑色矩阵 FPGA+USB 开发板 参考设计之二:串口测试
P A4r(mf3Pl203880-- 用于测试开发板的基本功能模块,包括: 串口
U,M8fRE%z203880-- 本程序参考了KCPSM3的参考设计EDA中国门户网站*N-h
f1T*A1?
} Ln/nq? QL203880--EDA中国门户网站MG2Hb+J3h
--EDA中国门户网站7]E;Zr)eFP2WZ/u
-- Reference design - Reference design for Black Matrix FPGA+USB Starter Kit EDA中国门户网站 ]9\m$[q8G3^^
--
#WV^
A%DL_S}f5f203880-- Email: spartan3@163.comEDA中国门户网站qft+`/n.J~
--EDA中国门户网站
H$V ZRA\0g9x,DL
-- All rights reserved.EDA中国门户网站W-|7qMI
X
S#cowQ
--
Dt
?)J&`/^i3P203880-- Introduction:
5MM!u8?Y ?T7sJA203880--
?o:U[
f,t203880-- This design use RS232!EDA中国门户网站5wt4QEt;C|M!r&X
--
9uF&C0~;}%O)f9r7M203880-- PicoBlaze is included.EDA中国门户网站(aS7k)TQ5I q
--EDA中国门户网站'~PW-Vl@HX
-- KCPSM3 reference design - Real Time Clock with UART communications
~&cH.AH:Ja
z/X3A203880--
l0C6Dx4Z fw*Pp7_q7O203880-- Ken Chapman - Xilinx Ltd - October 2003
$]k,|7L0n!?203880--
*}/{*k4^$}1Q"C#Z?:?j203880-- The design demonstrates the following:-
;mFj i2?&f203880-- Connection of KCPSM3 to Program ROMEDA中国门户网站:IQ \8fPg
-- Connection of UART macros supplied with PicoBlaze with
i
f2x3Nr
rQi203880-- Baud rate generation
lD(|Ev1Ro/e203880-- Definition of input and output ports with
"S7M!d?;f:j
~203880-- Minimum decodingEDA中国门户网站bXt4a,h;bS
-- Pipelining where appropriate
8Sf!J4R
I u
U{203880-- Interrupt circuit with
U)YF4V|"g\203880-- Simple fixed period timer
]
z tU*atX Tfm(x203880-- Automatic clearing using interrupt acknowledge from KCPSM3EDA中国门户网站Uso(l$m&m7e
--EDA中国门户网站N$_F:V,K%AJN
-- The design is set up for a 55MHz system clock and UART communications rate of 38400 baud.EDA中国门户网站gK8l_'Ri"~ ^3M
-- Please read design documentation to modify to your own requirements.
G.]R]0tfp{203880--EDA中国门户网站)?2TY
lclC(_
------------------------------------------------------------------------------------EDA中国门户网站 A)MLr&C7_&k?
--
!lo]I M7_203880-- NOTICE:
)Y,E,nIs4cG203880--EDA中国门户网站x!k:Jd!`ny0f
-- Copyright Xilinx, Inc. 2003. This code may be contain portions patented by other
9u5t
{ Y;tm:JRR~:|Ez/}203880-- third parties. By providing this core as one possible implementation of a standard,
q
_2kuch?!YL203880-- Xilinx is making no representation that the provided implementation of this standard
K
Pvo^8X0x6u7~203880-- is free from any claims of infringement by any third party. Xilinx expressly EDA中国门户网站VJ/T$LP9aV
-- disclaims any warranty with respect to the adequacy of the implementation, including EDA中国门户网站8s
d aRL6I9j
-- but not limited to any warranty or representation that the implementation is free
!]@&eyw'B203880-- from claims of any third party. Furthermore, Xilinx is providing this core as a EDA中国门户网站|LC.Res
-- courtesy to you and suggests that you contact all third parties to obtain the
R W B!R2SXP9q203880-- necessary rights to use this implementation.EDA中国门户网站$?R!o%KWJC
--EDA中国门户网站(`!onxl:u,JqL
------------------------------------------------------------------------------------EDA中国门户网站r@.z)k,MK!b.o-Y/{0j
--EDA中国门户网站8|.mxw,`'X
-- Library declarationsEDA中国门户网站L%gf
OxJ y
--
jQXo
mlp203880-- Standard IEEE librariesEDA中国门户网站l5n[/Q`$ln
--
~:nP-}#[w`%h+Sw203880library IEEE;EDA中国门户网站Lc
v~*@4ry
use IEEE.STD_LOGIC_1164.ALL;EDA中国门户网站NR v$g] IW!C!Y
use IEEE.STD_LOGIC_ARITH.ALL;
^,Kq$A(M203880use IEEE.STD_LOGIC_UNSIGNED.ALL;