CascadedBCDCntr&Display Aim : Capture, simulate and implement a 2-digit, loadable BCD up/down counter, with chip enable I/P (CE) and chip enable O/P (CEO).

Slides:



Advertisements
Similar presentations
Xilinx 6.3 Tutorial Integrated Software Environment (ISE) Set up basic environment Select Gates or Modules to Be simulated (Insert Program Code) Run Waveform.
Advertisements

COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Table 7.1 Verilog Operators.
Sumitha Ajith Saicharan Bandarupalli Mahesh Borgaonkar.
8253/54 Timer Section /54 Timer Description and Initialization
Digital Logic Circuit Analysis & Design 王 军 王 军 王晓东.
Enables simulation of the complete appliedVHDL system without the UART element. UART is removed and a byte I/O interface is used with the SRAM BFM Submission.
Counter Circuits and VHDL State Machines
Kazi Fall 2006 EEGN 4941 EEGN-494 HDL Design Principles for VLSI/FPGAs Khurram Kazi Some of the slides were taken from K Gaj’s lecture slides from GMU’s.
DIGITAL DESIGN WITH VHDL Exercise 1 1Muhammad Amir Yousaf.
Lab 5 :JK Flip Flop and Counter Fundamentals:
THANGJAM105/MAPLD1 EFFICIENT FPGA IMPLEMENTATION OF PWM CORE.
ECE 448: Spring 12 Lab 4 – Part 2 Finite State Machines Basys2 FPGA Board.
Digital Fundamentals with PLD Programming Floyd Chapter 10
Block Diagram of 4518 Dual BCD Counter The 4518 Dual BCD Counter has two BCD counters. Each counter is similar to the other. Each counter has a master.
Sept EE24C Digital Electronics Project Design of a Digital Alarm Clock.
CPE 169 Digital Design Laboratory Digilent Inc. Nexys Development Board.
Introduction to Counter in VHDL
Spring Introduction  Today’s tutorial focuses on introducing you to Xilinx ISE and Modelsim.  These tools are used for Verilog Coding Simulation.
1 Introduction to Xilinx ISL8.1i Schematic Capture and VHDL 1.
Project Presentation: Physical Unclonable Functions
Synchronous Counters with SSI Gates
VHDL Project Specification Naser Mohammadzadeh. Schedule  due date: Tir 18 th 2.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
LAB #2 Xilinix ISE Foundation Tools Schematic Capture “A Tutorial”
Senior Project Presentation: Designers: Shreya Prasad & Heather Smith Advisor: Dr. Vinod Prasad May 6th, 2003 Internal Hardware Design of a Microcontroller.
FPGA Design Flow Based on Using Seven-Segment Displays,
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE 448: Spring 11 Lab 3 Part 1 Sequential Logic for Synthesis.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Slide 1 6. VHDL/Verilog Behavioral Description. Slide 2 Verilog for Synthesis: Behavioral description Instead of instantiating components, describe them.
Working with Xilinx Spartan 3 Embedded Systems Lab 2009.
displayCtrlr Specification
ECE 448: Spring 11 Lab 3 Part 2 Finite State Machines.
Reaction Timer Project
Introductory project. Development systems Design Entry –Foundation ISE –Third party tools Mentor Graphics: FPGA Advantage Celoxica: DK Design Suite Design.
Slide 1 2. Verilog Elements. Slide 2 Why (V)HDL? (VHDL, Verilog etc.), Karen Parnell, Nick Mehta, “Programmable Logic Design Quick Start Handbook”, Xilinx.
Introduction to VHDL Simulation … Synthesis …. The digital design process… Initial specification Block diagram Final product Circuit equations Logic design.
MemCtrlrUnit Aim: Capture and simulate memCtrlrUnit element ISE Project : memCtrlr.ise provides access to all of the constituent files This document contains:
Yu Du, Yu Long Electrical & Computer Engineering
Synchronous Counter with MSI Gates
Counters.
Digital System Design using VHDL
Teaching Digital Logic courses with Altera Technology
AppliedVHDLV1 Aim: Capture, simulate, implement appliedVHDLV1 System Supports GUI r/w access from/to FPGA CSR block This document contains: EE427 submission.
George Mason University Behavioral Modeling of Sequential-Circuit Building Blocks ECE 545 Lecture 8.
THEME 6: Frequency dividers. Digital counters with reduced counting modulus. Programmable digital counters. If the input pulses are more than K, the counter.
ECE 448 Lab 3 FPGA Design Flow Based on Xilinx ISE and ISim. Using Seven-Segment Displays, Buttons, and Switches.
ECE 448 Lab 3 FPGA Design Flow Based on Xilinx ISE and Isim. Using Seven-Segment Displays, Buttons, and Switches.
DspBlk Aim: Capture and simulate dspBlk element ISE Project : appliedVHDL.ise provides access to all constituent files This document contains: EE427 submission.
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL Code.
Revision2 for CENG34340 (Self study exercise no need to submit)
Synchronous Counter with MSI Gates
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
Instructor: Alexander Stoytchev
Digital Fundamentals with PLD Programming Floyd Chapter 10
FPGA Project I: Up/Down Counter w/ Async Reset
Synchronous Counters with MSI Gates
Developing More Advanced Testbenches
Synchronous Counters with MSI Gates
Chapter 8 Counters Changjiang Zhang
Founded in Silicon Valley in 1984
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
14 Digital Systems.
THE ECE 554 XILINX DESIGN PROCESS
RTL Design Methodology
ECE 448 Lab 3 – Part 1 FPGA Design Flow Based on
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
ECE 448 Lab 3 – Part 1 FPGA Design Flow Based on
THE ECE 554 XILINX DESIGN PROCESS
Presentation transcript:

CascadedBCDCntr&Display Aim : Capture, simulate and implement a 2-digit, loadable BCD up/down counter, with chip enable I/P (CE) and chip enable O/P (CEO). Implement on the Digilent Xilinx Spartan-3 FPGA development system. Display the two digit count value on the two least significant 7-segment displays. Display the two digit counter load values on the two most significant MSB 7-segment displays. Assume a 50MHz system clk frequency. Internally, generate a one-clk-period duration enable pulse every second (every 50M, [maxCount] clock cycles and use to gate the chip enable input (CE input). ISE module VHDL file name is d3Design.vhd Use component displayCtrlr to display the current counter digits value and the counter load value input displayCtrlr Cascaded BCD Counter and Display Specification Digilent Spartan-3 Xilinx FPGA hardware development system displayCtrlr 3.0

CascadedBCDCntr&Display This document contains: Submission / demonstration instructions Top level d3Design Context Diagram, Data Dictionary and FPGA Pinout cascadedBCDCntr Functional Partition cascadedBCDCntr count algorithm and CEO function pseudo code Description of ISE project template files provided lab instructions Reference timing diagrams (simulation waveforms) Contents

CascadedBCDCntr&Display Top level d3Design Context Diagram, Data Dictionary and FPGA Pinout clk: input strobe, 50 MHz rst: asynchronous reset input. Assertion (H) clears all system registers d(7:4): most significant counter digit load data. Connected to FPGA board toggle switch inputs sw(7:4) d(3:0): least significant counter digit load data. Connected to FPGA board toggle switch inputs sw(3:0) load: counter load input signal. Assertion synchronously loads values d(7:4) and d(3:0) into counter upper and lower digits respectively. Connected to FPGA board spring loaded switch input btn(2) uD: counter up/down input signal. Assertion/deassertion defines up/down counter functionality. Connected to FPGA board spring loaded switch input btn(1) ce: counter chip enable input signal. Assertion activates the counter. Connected to FPGA board spring loaded switch input btn(0) ld(7:0): signals driving LEDs. Apply a fixed pattern seg7L(6:0): low asserted 7 segment LED signals. ‘0’ lights each LED. Display the two digit count value on the two least significant 7-segment displays. Display the two digit counter load values on the two most significant MSB 7-segment displays. anL(3:0):low asserted 7-segment display anode control. d3Design Component symbol

CascadedBCDCntr&Display Cascaded BCD Counter Functional Partition

CascadedBCDCntr&Display cascadedBCDCntr algorithm and ceoProc (pseudo code) This is not correct VHDL syntax (intended as aid only) Use integers in counter description (lwrInteger, uprInteger) Use VHDL vector-to-integer and integer-to-vector conversion functions if rst = ‘1’ then o/ps are cleared else if active clk edge then if load = ‘1’ then assign lwrInteger and uprInteger to integer representation of d(7:0) elsif ce = ‘1’ then if uD = ‘1’ then – counting up if lwrInteger < 9 then increment lwrInteger else lwrInteger <= 0; if uprInteger < 9 then increment uprInteger else uprInteger = 0; end if; else – counting down repeat above for down count function end if; ceoProc: ceo <= ‘0’ – default ceo <= ‘1’ when ce = ‘1’ and uprInteger=9 and lwrInteger=9 and ud=‘1’ or uprInteger=0 and lwrInteger=0 and ud=‘0’

CascadedBCDCntr&Display Project file User constraints file including FPGA pinout assignment cascadedBCDCntr&Display synthesisable VHDL model (template code provided, to be completed) Simulation automatic macro (provided) Simulation user macro (provided) VHDL Testbench (provided) Modelsim preferences file (Provided) Description of ISE project template files provided Review and become familiar with all of the above files Project level definitions/components declared in NUIGPackage.vhd ( NUIGPackage ) NUIGPackage

CascadedBCDCntr&Display Lab instructions Xilinx ISE Project : cascadedBCDCntr&Display.ise Provides access to all of the constituent files P1: VHDL capture and simulation Complete d3Design.vhd VHDL model template to fully describe the required model. Process labels are included corresponding to the labels on the functional partition The displayCtrlr component is included in the d3Design.vhd Check VHDL code syntax, synthesise and view RTL schematic. Review the VHDL testbench code (d3Design_TB.vhd) and Modelsim macro files provided. Simulate fully, review timing waveform, verify VHDL model operation. P2: Implement on FPGA Review d3Design.ucf (provided) for pinout Implement d3Design.vhd top level model and test

CascadedBCDCntr&Display Reference Timing Diagrams Simulation waveforms (d3Design level)

CascadedBCDCntr&Display Reference Timing Diagrams Simulation waveforms (zoomed in), (d3Design level)