140 likes | 255 Vues
This miniproject for ECE554 aims to familiarize students with the laboratory environment and the XSV board's capabilities. Participants will implement an asynchronous serial communication protocol, integrating various features of the Xilinx Virtex FPGA. Key tasks include configuring the board for transmission and reception of data over serial ports, utilizing keyboard inputs, and outputting to VGA monitors. Testing transmission and reception through a mock processor will reinforce learning objectives, enabling students to apply theoretical knowledge in a practical setting.
E N D
ECE 554 Miniproject Spring 2002 www.engr.wisc.edu/ece/courses/ece554.html
OBJECTIVES • To get familiar with the lab environment prior to the class project • To provide the basic I/O interface to the class project
XSV Board: Features • Xilinx Virtex FPGA (Compute) • 2 MB Memory (Store for Read/Write) • Parallel & Serial Ports to PC (I/O from/to Outside World) • Keyboard (PS/2) Port • VGA Output to VGA Monitor • Audio/Video Converter
Current Setup Parallel Cable Serial Cable NT machine running HyperTerminal Parallel port: Configuration download Serial port: Miniproject
Asynch Serial Communication • Start bit (1 bit wide) • Data bits (8 bits) • Parity(None, Even, Odd) • Stop bit (1 bit wide)
Baudrate and Sampling • 4800 and 9600 bit per second • Sampling rate = x16 of the baud rate (bit rate) • Divide the clock (5 and 20 MHz) to get the “Enable” signal (sampling rate)
Transmitting • Tx must be tested first. • Tx shifts the “LSB” out from Tx buffer first. • Tx sends “stop bit” when there is nothing to send.
Receiving • Receiver samples the RxD to get the beginning of the “start bit” • Use “resynchronization” to avoid “metastability” of any flip-flop
Processor Interface • Data is sent/received across the “bidirectional” data bus • Handshaking (status) signals • TBR: Transmit Buffer Ready (Empty) • RDA: Receive Data Available • CS: Chip Select • R/W_: Read or Write Bar signal
Testbench (mock Processor) • A finite state machine • Receives data on the RxD and transmits back on the TxD (echos) back to the HyperTerminal • Note that it is not provided.