CS150 Fall 2000 Project Info By: Nan (Norman) Zhou.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

Arctic IEC-104 Gateway Jari Lahti, CTO.
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
COEN 180 DRAM. Dynamic Random Access Memory Dynamic: Periodically refresh information in a bit cell. Else it is lost. Small footprint: transistor + capacitor.
Serial I/O - Programmable Communication Interface
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
Lecture 8: Serial Interfaces
Shift Register Application Chapter 22 Subject: Digital System Year: 2009.
CS Fall Final Project Final Project Report and Grading Randy H. Katz Computer Science Division Electrical Engineering and Computer Science.
Hierarchy of I/O Control Devices
EECS150 Fall 2000 Checkpoint #1 Wire-wrap, SRAM, and FIFO Design by Ramakrishna Gummadi Norm Zhou.
NACK Digital Equalizer Nguyen Craig Petersen Andrew Nguyen Kevin Wong Group 7 CPSC © 2000 Midterm Proposal.
Network based System on Chip Final Presentation Part B Performed by: Medvedev Alexey Supervisor: Walter Isaschar (Zigmond) Winter-Spring 2006.
Project Check-off 2 UART Design Jeffrey Tsai. Project Thus Far FIFO SRAM UART IN UART OUT Main Control FSM Collision Audio In interface Audio Out interface.
Ping Project Justin Knowles Kurt Lorhammer Brian Smith Andrew Tank ECEN 4610.
CS150 Project Checkpoint 1. Controller Interface Dreamkatz Controller Interface 1. The N64 Controller 2. Physical interface 3. Communication protocol.
CS150 Project Checkpoint 2 CheckPt2 is easy!!! BUT………………. This lab can be very tricky. BUT……………… Mark is here to help! You get to listen to cool.
Video Interface Jeffery Tsai Sammy Sy And pretty much everything else too…. CS 150 CHECKPOINT 3.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
5-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
Project Check Point 3 Audio Interface Jeff Du. Overview Project specs and overview next Tue. Mid-term next Thurs. This audio interface lab is REALLY easy.
Wireless Digital Audio Transmission Senior Design Project Summer 2002 E. Donnelly, K. Khan, S. Owen D. Choy Dr. H. Lam.
1 TRANSCEIVER TECHNOLOGY Presentation explores the Transceiver Design using a leading Manufactures Sales and Specification Sheets in the field. 1. Signaling.
Lecture 27: LM3S9B96 Microcontroller – Inter- Integrated Circuit (I 2 C) Interface.
INPUT-OUTPUT ORGANIZATION
SERIAL BUS COMMUNICATION PROTOCOLS
Serial Communication ETEC 6416.
Critical Design Review 27 February 2007 Black Box Car System (BBCS) ctrl + z: Benjamin Baker, Lisa Furnish, Chris Klepac, Benjamin Mauser, Zachary Miers.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 17.
4.0 rtos implementation part II
Introduction to Data communication
Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.
Lecture 26: LM3S9B96 Microcontroller – Universal Asynchronous Receivers/Transmitters.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Unit 4 Design and Synthesis of Datapath Controllers
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
Line Coding, Modem, RS232 interfacing sequences.
Universal Asynchronous Receiver/Transmitter (UART)
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
ECE 477 Design Review Team 2  Fall Outline Project overviewProject overview Project-specific success criteriaProject-specific success criteria.
ECS 152A 4. Communications Techniques. Asynchronous and Synchronous Transmission Timing problems require a mechanism to synchronize the transmitter and.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Universal Asynchronous Receivers/Transmitters Refer to Chapter 13 in the reference book “Stellaris®
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
8279 KEYBOARD AND DISPLAY INTERFACING
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Universal Asynchronous Receiver/Transmitter (UART)
FPGA firmware of DC5 FEE. Outline List of issue Data loss issue Command error issue (DCM to FEM) Command lost issue (PC with USB connection to GANDALF)
CSE Fall Introduction - 1 What’s Inside the Buffer? IhIh IlIl Write Reg This device always “drives” either high or low. Current is a function.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
AS Computing Data transmission. Basic data transmission Baud The rate that the voltage changes is called the Baud. If the voltage changes 10 times every.
8279 KEYBOARD AND DISPLAY INTERFACING
BIRLA VISHVAKARMA MAHAVIDYALAY SUBJECT: SPI PROTOCOL & MAX7221 DISPLAY INTERFACING SUBMITTED BY: KISHAN AVASTHI( ) MANSI CHANDEGARA( )
WINLAB Open Cognitive Radio Platform Architecture v1.0 WINLAB – Rutgers University Date : July 27th 2009 Authors : Prasanthi Maddala,
8251 USART.
Status and Plans for Xilinx Development
Chip Config & Drivers – Required Drivers:
Serial Communications
What’s Inside the Buffer?
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
DIGITAL DATA COMMUNICATION TECHNIQUES
Signal Theory Rei Sanchez.
DIGITAL DATA COMMUNICATION TECHNIQUES
Serial Communication Interface: Using 8251
DIGITAL DATA COMMUNICATION TECHNIQUES
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Serial Communications
Presentation transcript:

CS150 Fall 2000 Project Info By: Nan (Norman) Zhou

CS Fall Introduction - 2 Voice Over a Shared Network Project 1 Project 2 Project 3 Project 4 Hello World!

CS Fall Introduction - 3 Board Level Block Diagram Xilinx FPGA XC4010XL PC84 Package Bus DAC SRAM 64KB DATA[7:0] ADDR[15:0] A/D Converter Mic Speaker Where all your designs go Discrete parts on Prototype Board Wire Wrap Line Transmit/Receiver

CS Fall Introduction - 4 High Level Ideal zStart With Digitized Voice Data from A/D converter zTransmit Data in Packets Over the Shared Bus yListen for traffic ySend only if there is no traffic on the bus yListen for collisions and retransmit if necessary zReceive Data Packets Over the Shared Bus zSend Received Data to D/A converter to Recreate Sound zBuffer Incoming and Outgoing Data in SRAM

CS Fall Introduction - 5 Inside the FPGA FIFO SRAM UART IN UART OUT Main Control FSM Collision Audio In interface Audio Out interface Packet Logic

CS Fall Introduction - 6 Project Break Down zComplete project in pieces/checkpoints zCheck Point 1 ySRAM Interface yFIFO zCheck Point 2 yUART Transmitter Receiver zCheck Point 3 yAudio Interfaces zCheck Point 4 yPreliminary Global Data-path and Control zFinished Project

CS Fall Introduction - 7 Check Point 1 zSRAM interface. yGenerate Control signals (OE CE WE) for Asynchronous SRAM zFIFO yGenerate Pointer Addresses For Head/Tail of ring Buffer yKeep track of Buffer status (full, empty, half full) FIFO SRAM 64KB

CS Fall Introduction - 8 Check Point 2 zUART Transmitter yTakes Parallel Data Input yConverts to Serial yOutputs Serial Data to Bus yLook for Collision and Abort Transmission When Appropriate zUART Receiver yReads Serial Data from Bus yConverts from Serial to Parallel ySends Data to Rest of the Design y* Must Super Sample Data From Asynchronous Bus UART IN UART OUT

CS Fall Introduction - 9 Check Point 3 zAudio In from A/D yExpand Data Path to Take Data From A/D yWrite Data in FIFO Buffer in SRAM yShares Data line with SRAM zAudio Out to D/A yTake Data from FIFO Buffer yConvert Data to Serial Form yOutput to D/A chip Audio In interface Audio Out interface

CS Fall Introduction - 10 Check Point 3, comments zPlease read the Specs for the A/D, D/A chips zUse the Pulse generator to generate input for test. yMAKE SURE you first measure the output Peak to Peak voltage before you hook it up to the A/D. it should be 2 V yAlso try to use a audible frequency much lover than the sampling rate. 400Hz or so should be good. zKeep you chips close together! Save space! yThere are more chips on the way zElectrolytic Capacitors have a specific pin for ground and a different one for Vcc

CS Fall Introduction - 11 Check Point 4 zPacket Logic yReceive Logic xTake Data From UART xReconstruct Packet xInterpret Packet and Take Appropriate Action ySend Logic xTake Data from SRAM xConstruct Packet xSend to UART zYou are expected to show successful transmission of a packet for this checkpoint.

CS Fall Introduction - 12 What is a Packet? z5 bytes of UART transmission z1 header, and 4 data samples zHeader has 2 bit control, 3bit destination, 3bit source. Header, comes from Dipswitch Time

CS Fall Introduction - 13 Packet Logic zConstruct Packet from byte input, coming from either UART in or FIFO (SRAM) zSend Packet byte at a time to UART out or FIFO (SRAM) zDecode packet yLook at header yIs packet for me? Packet Logic

CS Fall Introduction - 14 Network Protocol zAlways listen on the shared bus. (everyone picks up everything on the line) zFilter out packets that does not have you as a source in the packet logic. zTransmission policy (greatly reduces collision frequency) yBefore you transmit first check Packet Logic and UART to see if bus is being used. yIf bus is not used then wait a random amount of time before you start transmission yIf 2 stations happens to decide to start at the same time, they collide, the station with the first 1 in the transmission loses and backs off. yTo tell collision check to see if output is same as input on the shared bus.

CS Fall Introduction - 15 Network Protocol Busy Idle When bus is busy no one else can start a new transmission Collision can only occur when more than one station wants to transmit when the bus is idle. Even then it only happens when they both decide to start at the same time

CS Fall Introduction - 16 What actually happens in a Collision? zWhen TX is low the line is Driven low. zHowever when TX is high the Line is left floating, and the resistor pulls the line high zThis means that during a collision whoever is sending a zero always wins. zThe winner continues to send as if nothing ever happened zThe loser detects that the 1 it’s trying to send is not being sent on the wire. So it stops immediately and tries later. TX.L RX Shared Bus

CS Fall Introduction - 17 Trace of data flow in Final project 1.Analog input voltage is converted to 8bit unsigned # 2.This 8bit DATA is written directly into the SRAM through the shared data line of A/D and SRAM z this is done by asserting the WE of SRAM during the time when RD is asserted for the A/D chip zThe Address for the write is provided by the FIFO for the out going data. 3.Data is read out of the SRAM 4 bytes at a time and put into the packet logic. A header byte is also added by taking input from the DIP SWITCH

CS Fall Introduction - 18 Trace of data flow in Final project 4.The packet is sent to the UART out one byte at a time. If the bus is idle and there is no collision 5.DATA travels bit serially to another station and gets picked up by UART in. 6.The UART in then sends the data to the Packet Logic one byte at a time 7.Packet Logic decodes the packet z If the destination matches the station then send the 4 data bytes to the SRAM one at a time. zThe OUTPUT FIFO generates the address

CS Fall Introduction - 19 Trace of data flow in Final project 8.Read DATA from SRAM zConvert from 8bit unsigned to 16bit 2’s compliment (note I did a lousy job of that from the schematic I gave you guys for checkpoint 3. I expect better from you for the final project) 9.Send the converted data to the D/A z(and hopefully voice comes out)

CS Fall Introduction - 20 Miscellaneous info zMax bus bit rate, 250Kbps zSuper sampled clock rate 2MHz zVoice sampling, 8bit, 2KHz y8 x 2K = 16Kbps pure data rate zNetwork Bandwidth taken per voice stream yPure data rate plus… yUART overhead 2bits per 8 data bits yPacket 1 header byte per 4 data bytes yIdle time overhead for random wait time after bus idle zMany shared resources! Think hard about how to share them.

CS Fall Introduction - 21 Happy Halloween!