Diferență între revizuiri ale paginii „DIC Lab Work 4”

De la WikiLabs
Jump to navigationJump to search
Linia 14: Linia 14:
 
== Exercise ==
 
== Exercise ==
  
Build a circuit that instantiates 8 variable fill factor signal generators to form a LEDG7-LEDG0 intensity ramp with the following features:
+
Build a circuit that instantiates 8 variable duty cycle (fill factor) signal generators to form a LEDG7-LEDG0 intensity ramp with the following features:
 
* LEDG0 intensity, denoted I <sub> LEDG0 </sub> is determined by SW7-SW0
 
* LEDG0 intensity, denoted I <sub> LEDG0 </sub> is determined by SW7-SW0
 
* The LEDG0-7 intensities respect one of the following relationships (the teacher will assign each of the students one of the following relationships):
 
* The LEDG0-7 intensities respect one of the following relationships (the teacher will assign each of the students one of the following relationships):

Versiunea de la data 30 mai 2018 09:27

Notions and Knowledge Required

Example

Make a circuit that turns on LEDG7 with a variable intensity controlled by a value set by the SW7-SW0 switches using a variable fill factor signal generator based on an 8-bit counter. The numerator will be described as a separate Verilog mode, and will be instantiated in the signal generator.

Exercise

Build a circuit that instantiates 8 variable duty cycle (fill factor) signal generators to form a LEDG7-LEDG0 intensity ramp with the following features:

  • LEDG0 intensity, denoted I LEDG0 is determined by SW7-SW0
  • The LEDG0-7 intensities respect one of the following relationships (the teacher will assign each of the students one of the following relationships):
    1. I LEDG0 < I LEDG1 < I LEDG2 < I LEDG3 < I LEDG4 < I LEDG5 < I LEDG6 < I LEDG7
    2. I LEDG0 > I LEDG1 < I LEDG2 < I LEDG3 < I LEDG4 < I LEDG5 < I LEDG6 < I LEDG7
    3. I LEDG0 > I LEDG1 > I LEDG2 < I LEDG3 < I LEDG4 < I LEDG5 < I LEDG6 < I LEDG7
    4. I LEDG0 > I LEDG1 > I LEDG2 > I LEDG3 < I LEDG4 < I LEDG5 < I LEDG6 < I LEDG7
    5. I LEDG0 > I LEDG1 > I LEDG2 > I LEDG3 > I LEDG4 < I LEDG5 < I LEDG6 < I LEDG7
    6. I LEDG0 > I LEDG1 > I LEDG2 > I LEDG3 > I LEDG4 > I LEDG5 < I LEDG6 < I LEDG7
    7. I LEDG0 > I LEDG1 > I LEDG2 > I LEDG3 > I LEDG4 > I LEDG5 > I LEDG6 < I LEDG7
    8. I LEDG0 > I LEDG1 > I LEDG2 > I LEDG3 > I LEDG4 > I LEDG5 > I LEDG6 > I LEDG7

Bonus Exercise

Build a circuit that then turns off a led gradually, using a variable fill factor generator.