Answers Database


F1.4, F1.5 Simulation: How to create an LED (7 seg) drawing on the schematic that lights during simulation.


Record #4092

Product Family: Software

Product Line: Aldec

Product Part: Foundation Logic Simulator

Product Version: 1.4

Problem Title:
F1.4, F1.5 Simulation: How to create an LED (7 seg) drawing on the schematic that lights during simulation.



Problem Description:
Urgency: Standard

General Description:
When doing a simulation for a design that drives a 7 segment LED (or any LED), how can the LED be graphically represented?


Solution 1:

To graphically present the states of the LEDs, lines can be drawn in the schematic editor and net names linked to the lines, then when probes are placed on the net names, the probes will display the associated state of each LED bit.

Steps:
1. Using the line tool in the schematic editor, draw the shape of the LEDs. (eg a block figure 8)

2. Place net names on each of the lines. Use the same net names as those that
drive the real LEDs. Use the 'Add net or bus name' button (the 4th from the bottom - left side) to place the names.

3. Place probes on the net names of the lines (and the real driver nets if desired) and simulate. When stepping thru the simulation, you will be able to see the probes changing states.

NOTE: The entire line of each LED bit will not light, only the probe will, but this gives a rough simulated display of the actual LEDs.

The Flash and Watch sample designs contain examples of doing this.




End of Record #4092 - Last Modified: 08/04/98 14:26

For the latest news, design tips, and patch information on the Xilinx design environment, check out the Technical Tips!