⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 网上找的
💻 TXT
字号:
                 UART_TX and UART_RX   version 1.00
                 ----------------------------------

              UART Receiver with internal 16-byte buffer

                               and

              UART Transmitter with internal 16-byte buffer

                               for 

                 Virtex, Virtex-E and Spartan-II
                 -------------------------------

Author
------

Ken Chapman
Xilinx UK
October 2000

email: chapman@xilinx.com



Introduction
------------

These small UART transmitter and receiver macros of just 7 and 8 Virtex CLBs respectively
provides all the functionality of a standard UART together with internal 16-byte FIFO
buffers.


Macro Details  
-------------

Full details are provided in application note XAPP223.

The serial transmission conforms to 1 start bit, 8 data bits, 1 stop bit. The bit rate 
is determined by the user application of a reference timing source.


Applications
------------

Suitable for linking a Xilinx device to an external micro-controller or PC using standard
BAUD rates. 

Also possible to use in communicating between Xilinx devices in a system at over 10Mbit/sec.


Testing and Performance
-----------------------

The macros have been developed over a long period of time during which testing has included 
communication between a PC and PDA and a Virtex device with no errors being encountered.

The internal buffers are based on previous work available under the title BBFIFO which 
has also received a longer testing period without error.

The macros have also be used with an embedded micro-controller macro called KCPSM (see
XAPP223 for more details). 


Using UART_TX and UART_RX in designs
------------------------------------

The macros are in the form of a EDIF (.edn) files which can be used within any Virtex 
or Spartan-II design. The macro should be treated as a 'black box' in the design.

Examples of connectivity, and complete signal descriptions are provided in XAPP223.

In VHDL, the macros can be instantiated using the port definitions decribed

component uart_tx is
  port (            din : in STD_LOGIC_VECTOR (7 downto 0);
                  write : in  STD_LOGIC;
           reset_buffer : in  STD_LOGIC;
           en_16_x_baud : in  STD_LOGIC;
                    clk : in  STD_LOGIC;
             serial_out : out STD_LOGIC;
            buffer_full : out STD_LOGIC);
  end component; 

component uart_rx is
  port (      serial_in : in  STD_LOGIC;
                   read : in  STD_LOGIC;
           reset_buffer : in  STD_LOGIC;
           en_16_x_baud : in  STD_LOGIC;
                    clk : in  STD_LOGIC;
                   dout : out STD_LOGIC_VECTOR (7 downto 0);
           data_present : out STD_LOGIC;
            buffer_full : out STD_LOGIC);
  end component; 


Foundation users can use the Schematic feature 'create macro symbol from netlist' to be
found under the 'Hierarchy' menu.

The 'CLK' signal should be provided using one of the global clock buffers. 

Time specifications should be provided which must cover the use of 'FFS:TO:FFS'.

Example time specifications for 100MHz operation

   TS01=FROM:FFS:TO:FFS:10NS


Issues with brackets
--------------------

The EDIF netlist assumes that bus signals (the 'DIN' and 'DOUT' busses in this case)
are defined using <> type of brackets. Some tools may define the ports to a 'black box'
to be of a different type and this may prevent the correct inclusion of the macro into the
complete design.

Some tools allow the definition of the brackets to be specified, in which case define the 
use of <> type.

In the case where alternative brackets are required, a simple modification
can be performed using a text editor. Simply open the EDN files and 
replace all instances of '<' and '>' with the desired format. 


Future Plans
------------

To provide UARTs with built in parity checking.
To provide a Rx-Tx combination with automatic XON/XOFF handling.


Feedback
--------

Please inform the author if you have used thess macros stating:-

1) Your name, Company name, and Location.
2) The version.
3) If the results were satisfactory.
4) Alternative implementations you would like to see (Please state the application).
6) In cases of difficulty, please supply version details and implementation
   tools. 


---------------------------------------------------------------------------------------
End of Readme.txt file
---------------------------------------------------------------------------------------
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -