Tableau VHDL
Fermé
marcel75200
Messages postés
1
Date d'inscription
jeudi 7 juin 2007
Statut
Membre
Dernière intervention
7 juin 2007
-
7 juin 2007 à 10:58
russell14 Messages postés 4 Date d'inscription jeudi 13 mars 2008 Statut Membre Dernière intervention 13 mars 2008 - 13 mars 2008 à 16:35
russell14 Messages postés 4 Date d'inscription jeudi 13 mars 2008 Statut Membre Dernière intervention 13 mars 2008 - 13 mars 2008 à 16:35
A voir également:
- Tableau VHDL
- Tableau croisé dynamique - Guide
- Tableau ascii - Guide
- Afficher un tableau en c - Forum C
- Le fichier contient une liste de prénoms. triez ce tableau par ordre alphabétique des prénoms. quel mot est formé par les 6 premières lettres de la colonne code ? - Forum Bureautique
- Tableau word - Guide
1 réponse
russell14
Messages postés
4
Date d'inscription
jeudi 13 mars 2008
Statut
Membre
Dernière intervention
13 mars 2008
1
13 mars 2008 à 16:35
13 mars 2008 à 16:35
slt, je dois faire un tableau en VHDL capable d'accepter X valeurs. Le probléme c que c trop dur car il faut utiliser l'expression WRITE pour créer un fichier. Le probleme est que ce fichier apres simulation n 'apparait pas et je ne sais pas ou le trouver. Voici un début de programme et donne moi ton avis sur la maniere de s'y prendre. bonne chance,bon courage.
LIBRARY ieee ;
use std.textio.all;
USE ieee.std_logic_1164.all ;
LIBRARY std;
ENTITY table5 IS
PORT ( init: IN STD_LOGIC;
acquit: OUT STD_LOGIC );
END table5 ;
ARCHITECTURE testTableau OF table5 IS
BEGIN
PROCESS (init)
file tableau : text;
variable pixel_1 : line;
variable pixel_2 : line;
BEGIN
file_open (tableau,"d:\russell\tableau.txt",write_mode);
write(pixel_1, string'("writing from tableau.txt"));
writeline(tableau, pixel_1);
write( pixel_1,string'("output from tableau.txt.vhdl"));
write(pixel_2, string'("writing from tableau.txt"));
writeline(tableau, pixel_2);
write( pixel_2,string'("output from tableau.txt.vhdl"));
acquit <= not init;
END PROCESS;
END testTableau;
LIBRARY ieee ;
use std.textio.all;
USE ieee.std_logic_1164.all ;
LIBRARY std;
ENTITY table5 IS
PORT ( init: IN STD_LOGIC;
acquit: OUT STD_LOGIC );
END table5 ;
ARCHITECTURE testTableau OF table5 IS
BEGIN
PROCESS (init)
file tableau : text;
variable pixel_1 : line;
variable pixel_2 : line;
BEGIN
file_open (tableau,"d:\russell\tableau.txt",write_mode);
write(pixel_1, string'("writing from tableau.txt"));
writeline(tableau, pixel_1);
write( pixel_1,string'("output from tableau.txt.vhdl"));
write(pixel_2, string'("writing from tableau.txt"));
writeline(tableau, pixel_2);
write( pixel_2,string'("output from tableau.txt.vhdl"));
acquit <= not init;
END PROCESS;
END testTableau;