this material exempt per department of commerce license exception tsu architecture wizard and pace...

9
This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

Upload: jessie-mclaughlin

Post on 21-Jan-2016

215 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

This material exempt per Department of Commerce license exception TSU

Architecture Wizard and PACE

Lab 2 Introduction

Page 2: This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

Lab 2 Intro 2

Introduction

• This lab guides you through the process of adding a DCM (Digital Clock Manager) into a PicoBlaze UART real-time clock design. – The DCM will divide the 100 MHz system clock on the XUP Virtex-II Pro

board down to 50 MHz. – This 50 MHz will clock the design which consists of the PicoBlaze, TX and

RX UARTs, and control logic. • You will generate a bitstream and configure the Virtex-II Pro

device on the XUP board– You will interact with PicoBlaze via hyperterminal to set the current and

alarm times, and start and stop the times. – When the alarm goes off, an LED will flash.

Page 3: This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

Lab 2 Intro 3

Objectives

After completing this module, you will be able to:

• Use architecture wizard to parameterize a DCM• Instantiate the DCM into the design using the language template• Specify pin constraints using PACE• Download and test the design in hardware

Page 4: This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

Lab 2 Intro 4

General Flow

• Step 1: Use the architecture wizard to configure a DCM• Step 2: Instantiate the DCM into a VHDL/Verilog design• Step 3: Use PACE to assign pin locations• Step 4: Verify PAD report and start a hyperterminal session• Step 5: Download the Design• Step 6: Operating the Real-Time UART clock

Page 5: This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

Lab 2 Intro 5

UART Real-Time Clock

• The design understands some simple ASCII commands– TIME – current time displayed according to 24 hour clock in format

hh:mm:ss– TIME hh:mm:ss – allows time to be set according to 24 hour clock– ALARM – current alarm time will be displayed according to 24 hour clock.

The current status of the alarm will be displayed (ON, OFF, Active)– ALARM hh:mm:ss – allows the alarm to be set according to the 24 hour

clock. The new alarm time and current status will be displayed.– ALARM ON – Enables the alarm to be active. Current alarm time and

status will be displayed.– ALARM OFF – Disables the alarm. Current alarm time and status will be

displayed

Page 6: This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

Lab 2 Intro 6

PicoBlaze Hardware Design

PicoBlazeuart_tx

Instructions

Address

Instructions

rx_data out_port[7:0]

port_id[7:0]

write_strobe

D Q

enport_id[0]

port_id[0]

Interrupt_ack

alarm

tx

interrupt

control Interrupt_event

DCM clk 100 MHz 50 MHz

D Q

en

uart_rxrx

rx_data

tx_full, tx_half_full

rx_half_fullrx_full

000

BaudCount

en_16_x_baud

You will add the DCM to the design

Page 7: This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

Lab 2 Intro 7

Basic Overview of Source

Input port definition For PicoBlaze

Output port definition For PicoBlaze

Register Names

Page 8: This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

Lab 2 Intro 8

Basic Overview of Source

Initialization

Prompt user for input,Checking for “TIME” Or “ALARM”

Checks to see if “TIME”Is entered correctly; AlsoChecks to see if a commandWas entered

Current time entered by user is tested,stored in PicoBlaze registers, andTransmitted to the UART for displayOn hyperterminal

Page 9: This material exempt per Department of Commerce license exception TSU Architecture Wizard and PACE Lab 2 Introduction

Lab 2 Intro 9

Basic Overview of Source

Checks to see if “ALARM”Is entered correctly; AlsoChecks to see if a commandIs entered

Alarm time command entered by user is tested. If an alarm time is entered, it isstored in PicoBlaze registers, andTransmitted to the UART for display on hyperterminal