Difference between revisions of "Xilinx ISE Schematics Sequential Circuit"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- <bluebox> This lab illustrate how to create a sequential circuit for the Xilinx CoolRunner II CPLD, and how to do behavioral simulation of it. </bluebox> =Introduc...")
 
(Introduction)
Line 9: Line 9:
 
=Introduction=
 
=Introduction=
  
This lab assumes you have gone through the previous lab
+
This lab assumes you have gone through the previous [[Xilinx_ISE_Lab_No._1:_Schematics_Input | lab in this series]].
 +
 
 +
In this lab we will be using flip-flops.  Xilinx offers a large library of sequential circuits.  Make sure to check it out when searching for circuits: [http://people.wallawalla.edu/~larry.aamodt/engr433/xilinx_lib6_ref.pdf Xilinx Refernce Library].
 +
 
 +
=The Circuit of the Day=
 +
 
 +
The circuit we want to implement in this lab is a sequential circuit controlling 3 LEDs, one '''Green''', on '''Yellow''', and one '''Red''' that stay on for one cycle of the clock in the following fashing:
 +
* When the outside command signal called '''cmd''' is 1, the cycling goes Green, Yellow, Red, Green, Yellow, etc...
 +
* When the outside command '''cmd''' is 0, the cycling stops on Red.  If cmd is activated when the light that is on is not Red, the cycling still follows the Green-Yellow-Red path, and stops on Red as long as cmd remains 0.
 +
 
 +
Generate the equation for this 2-flip-flop circuit.
 +
 
 +
<font color="white">
 +
<tt>D0 = cmd  and not( Q1 ) and not( Q0 )</tt><br />
 +
<tt>D1  = not( Q1 ) and Q0</tt><br />
 +
<tt>R = not( Q1 or Q0)</tt><br />
 +
<tt>Y = Q1</tt><br />
 +
<tt>G = not( R + Y )</tt><br />
 +
 
 +
</font>
 +
 
 +
=Illustrated Steps=
 +
 
 +
 
 +
* Create a new '''project'''.
 +
* Create a new '''source''' with type '''schematics'''.
 +
*

Revision as of 14:10, 23 April 2012

--D. Thiebaut 13:47, 23 April 2012 (EDT)


This lab illustrate how to create a sequential circuit for the Xilinx CoolRunner II CPLD, and how to do behavioral simulation of it.


Introduction

This lab assumes you have gone through the previous lab in this series.

In this lab we will be using flip-flops. Xilinx offers a large library of sequential circuits. Make sure to check it out when searching for circuits: Xilinx Refernce Library.

The Circuit of the Day

The circuit we want to implement in this lab is a sequential circuit controlling 3 LEDs, one Green, on Yellow, and one Red that stay on for one cycle of the clock in the following fashing:

  • When the outside command signal called cmd is 1, the cycling goes Green, Yellow, Red, Green, Yellow, etc...
  • When the outside command cmd is 0, the cycling stops on Red. If cmd is activated when the light that is on is not Red, the cycling still follows the Green-Yellow-Red path, and stops on Red as long as cmd remains 0.

Generate the equation for this 2-flip-flop circuit.

D0 = cmd and not( Q1 ) and not( Q0 )
D1 = not( Q1 ) and Q0
R = not( Q1 or Q0)
Y = Q1
G = not( R + Y )

Illustrated Steps

  • Create a new project.
  • Create a new source with type schematics.