Forum Discussion
Altera_Forum
Honored Contributor
18 years agoOk thanks, I agree with you; and I havn't the constant drivers error BUT,
in "tools/netlist viewer/state machine viewer" I get somthing which is suspect. I try with only 3 states and I saw that the "when" in my case dont stop. That's make a big looping which never stop. the code:
architecture Struct_LCD of LCD is
type ETAT is (RESET,ECRITURE1,ECRITURE2);
Signal etat_pres, etat_suiv : ETAT := RESET;
begin
Process(clock)
begin
if(clock'event and clock = '1') then etat_pres <= etat_suiv;
end if;
end process;
Process(etat_pres,etat_suiv)
begin
case etat_pres is
when RESET =>
LCD_ON<='1';
etat_suiv <=ECRITURE1;
when ECRITURE1 =>
LCD_EN<= '1';
LCD_ON<='1';
LCD_Data <= x"01";
etat_suiv <=ECRITURE2;
when ECRITURE2 =>
LCD_EN<= '0';
LCD_ON<='1';
LCD_Data <= x"01";
end case;
end process;
end Struct_LCD ; and the diagramm is: http://img167.imageshack.us/img167/4314/lcd0rz0.th.jpg (http://img167.imageshack.us/my.php?image=lcd0rz0.jpg) and I want: http://img441.imageshack.us/img441/5025/lcd1jg6.th.jpg (http://img441.imageshack.us/my.php?image=lcd1jg6.jpg) thanks for your help!