Altera Designing With Low-Level Primitives Manuel d'utilisateur Page 21

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 56
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 20
Altera Corporation 1–15
April 2007 Designing with Low-Level Primitives User Guide
Low-Level Primitive Design
Example 1–10 uses the LUT primitive to create LUTs that implement a
4-input AND and a 4-input OR function.
Example 1–10. Using the LUT Primitive
module luts (
input [3:0] in1, in2,
output out1, out2
);
lut_sub inst1 (in1, out1);
defparam inst1.mask = 16'H8000; // AND function
lut_sub inst2 (in2, out2);
defparam inst2.mask = 16'HFFFE; // OR function
endmodule
Vue de la page 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 55 56

Commentaires sur ces manuels

Pas de commentaire