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

De la WikiLabs
Jump to navigationJump to search
Linia 2: Linia 2:
  
 
* [[Introduction. Verilog HDL and ModelSim | Boolean logic and numbering systems]]
 
* [[Introduction. Verilog HDL and ModelSim | Boolean logic and numbering systems]]
* Syntax [[Verilog_EN]]
+
* Syntax [[Verilog]]
* [[Quartus_II_tutorial | Using the Altera Quartus II Synthesis Program]]
+
* [[Tutorial_Quartus_II | Using the Altera Quartus II Synthesis Program]]
 
* [http://wiki.dcae.pub.ro/images/f/fc/Pini_la_care_sunt_conectati_dispozitivele_I-O_pe_placa_experimentala_DE1.pdf List of pins for plate DE1]
 
* [http://wiki.dcae.pub.ro/images/f/fc/Pini_la_care_sunt_conectati_dispozitivele_I-O_pe_placa_experimentala_DE1.pdf List of pins for plate DE1]
 
* [[Sequential Circuits]], [[Counter]]
 
* [[Sequential Circuits]], [[Counter]]
Linia 17: Linia 17:
 
* 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):
*#I <sub> LEDG0 </sub> &lt; I <sub> LEDG1 </sub> &lt; I <sub> LEDG2 </sub> &lt; I <sub> LEDG3 </sub> &lt; I <sub> LEDG4 </sub> &lt; I <sub> LEDG5 </sub> &lt; I <sub> LEDG6 </sub> &lt; I <sub> LEDG7 </sub>
+
* #I <sub> LEDG0 </sub> & lt; I <sub> LEDG1 </sub> & lt; I <sub> LEDG2 </sub> & lt; I <sub> LEDG3 </sub> & lt; I <sub> LEDG4 </sub> & lt; I <sub> LEDG5 </sub> & lt; I <sub> LEDG6 </sub> & lt; I <sub> LEDG7 </sub>
*#I <sub> LEDG0 </sub> &gt; I <sub> LEDG1 </sub> &lt; I <sub> LEDG2 </sub> &lt; I <sub> LEDG3 </sub> &lt; I <sub> LEDG4 </sub> &lt; I <sub> LEDG5 </sub> &lt; I <sub> LEDG6 </sub> &lt; I <sub> LEDG7 </sub>
+
* #I <sub> LEDG0 </sub> & gt; I <sub> LEDG1 </sub> & lt; I <sub> LEDG2 </sub> & lt; I <sub> LEDG3 </sub> & lt; I <sub> LEDG4 </sub> & lt; I <sub> LEDG5 </sub> & lt; I <sub> LEDG6 </sub> & lt; I <sub> LEDG7 </sub>
*#I <sub> LEDG0 </sub> &gt; I <sub> LEDG1 </sub> &gt; I <sub> LEDG2 </sub> &lt; I <sub> LEDG3 </sub> &lt; I <sub> LEDG4 </sub> &lt; I <sub> LEDG5 </sub> &lt; I <sub> LEDG6 </sub> &lt; I <sub> LEDG7 </sub>
+
* #I <sub> LEDG0 </sub> & gt; I <sub> LEDG1 </sub> & gt; I <sub> LEDG2 </sub> & lt; I <sub> LEDG3 </sub> & lt; I <sub> LEDG4 </sub> & lt; I <sub> LEDG5 </sub> & lt; I <sub> LEDG6 </sub> & lt; I <sub> LEDG7 </sub>
*#I <sub> LEDG0 </sub> &gt; I <sub> LEDG1 </sub> &gt; I <sub> LEDG2 </sub> &gt; I <sub> LEDG3 </sub> &lt; I <sub> LEDG4 </sub> &lt; I <sub> LEDG5 </sub> &lt; I <sub> LEDG6 </sub> &lt; I <sub> LEDG7 </sub>
+
* #I <sub> LEDG0 </sub> & gt; I <sub> LEDG1 </sub> & gt; I <sub> LEDG2 </sub> & gt; I <sub> LEDG3 </sub> & lt; I <sub> LEDG4 </sub> & lt; I <sub> LEDG5 </sub> & lt; I <sub> LEDG6 </sub> & lt; I <sub> LEDG7 </sub>
*#I <sub> LEDG0 </sub> &gt; I <sub> LEDG1 </sub> &gt; I <sub> LEDG2 </sub> &gt; I <sub> LEDG3 </sub> &gt; I <sub> LEDG4 </sub> &lt; I <sub> LEDG5 </sub> &lt; I <sub> LEDG6 </sub> &lt; I <sub> LEDG7 </sub>
+
* #I <sub> LEDG0 </sub> & gt; I <sub> LEDG1 </sub> & gt; I <sub> LEDG2 </sub> & gt; I <sub> LEDG3 </sub> & gt; I <sub> LEDG4 </sub> & lt; I <sub> LEDG5 </sub> & lt; I <sub> LEDG6 </sub> & lt; I <sub> LEDG7 </sub>
*#I <sub> LEDG0 </sub> &gt; I <sub> LEDG1 </sub> &gt; I <sub> LEDG2 </sub> &gt; I <sub> LEDG3 </sub> &gt; I <sub> LEDG4 </sub> &gt; I <sub> LEDG5 </sub> &lt; I <sub> LEDG6 </sub> &lt; I <sub> LEDG7 </sub>
+
* #I <sub> LEDG0 </sub> & gt; I <sub> LEDG1 </sub> & gt; I <sub> LEDG2 </sub> & gt; I <sub> LEDG3 </sub> & gt; I <sub> LEDG4 </sub> & gt; I <sub> LEDG5 </sub> & lt; I <sub> LEDG6 </sub> & lt; I <sub> LEDG7 </sub>
*#I <sub> LEDG0 </sub> &gt; I <sub> LEDG1 </sub> &gt; I <sub> LEDG2 </sub> &gt; I <sub> LEDG3 </sub> &gt; I <sub> LEDG4 </sub> &gt; I <sub> LEDG5 </sub> &gt; I <sub> LEDG6 </sub> &lt; I <sub> LEDG7 </sub>
+
* #I <sub> LEDG0 </sub> & gt; I <sub> LEDG1 </sub> & gt; I <sub> LEDG2 </sub> & gt; I <sub> LEDG3 </sub> & gt; I <sub> LEDG4 </sub> & gt; I <sub> LEDG5 </sub> & gt; I <sub> LEDG6 </sub> & lt; I <sub> LEDG7 </sub>
*#I <sub> LEDG0 </sub> &gt; I <sub> LEDG1 </sub> &gt; I <sub> LEDG2 </sub> &gt; I <sub> LEDG3 </sub> &gt; I <sub> LEDG4 </sub> &gt; I <sub> LEDG5 </sub> &gt; I <sub> LEDG6 </sub> &gt; I <sub> LEDG7 </sub>
+
* #I <sub> LEDG0 </sub> & gt; I <sub> LEDG1 </sub> & gt; I <sub> LEDG2 </sub> & gt; I <sub> LEDG3 </sub> & gt; I <sub> LEDG4 </sub> & gt; I <sub> LEDG5 </sub> & gt; I <sub> LEDG6 </sub> & gt; I <sub> LEDG7 </sub>
  
 
== Bonus Exercise ==
 
== Bonus Exercise ==
  
 
Make a circuit that then turns off a led gradually, using a variable fill factor generator.
 
Make a circuit that then turns off a led gradually, using a variable fill factor generator.

Versiunea de la data 11 aprilie 2018 23:46

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 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):
  • #I LEDG0 & lt; I LEDG1 & lt; I LEDG2 & lt; I LEDG3 & lt; I LEDG4 & lt; I LEDG5 & lt; I LEDG6 & lt; I LEDG7
  • #I LEDG0 & gt; I LEDG1 & lt; I LEDG2 & lt; I LEDG3 & lt; I LEDG4 & lt; I LEDG5 & lt; I LEDG6 & lt; I LEDG7
  • #I LEDG0 & gt; I LEDG1 & gt; I LEDG2 & lt; I LEDG3 & lt; I LEDG4 & lt; I LEDG5 & lt; I LEDG6 & lt; I LEDG7
  • #I LEDG0 & gt; I LEDG1 & gt; I LEDG2 & gt; I LEDG3 & lt; I LEDG4 & lt; I LEDG5 & lt; I LEDG6 & lt; I LEDG7
  • #I LEDG0 & gt; I LEDG1 & gt; I LEDG2 & gt; I LEDG3 & gt; I LEDG4 & lt; I LEDG5 & lt; I LEDG6 & lt; I LEDG7
  • #I LEDG0 & gt; I LEDG1 & gt; I LEDG2 & gt; I LEDG3 & gt; I LEDG4 & gt; I LEDG5 & lt; I LEDG6 & lt; I LEDG7
  • #I LEDG0 & gt; I LEDG1 & gt; I LEDG2 & gt; I LEDG3 & gt; I LEDG4 & gt; I LEDG5 & gt; I LEDG6 & lt; I LEDG7
  • #I LEDG0 & gt; I LEDG1 & gt; I LEDG2 & gt; I LEDG3 & gt; I LEDG4 & gt; I LEDG5 & gt; I LEDG6 & gt; I LEDG7

Bonus Exercise

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