Forum Discussion
Altera_Forum
Honored Contributor
14 years agoStrange Behavior when using case statement on EPM3128A
I have been having a problem with a project that I am doing and have asked many people in the office to no eval. I am using an Altera EPM3128A Device with a GCLK1 speed of 24MHz, I then devide ...
Altera_Forum
Honored Contributor
14 years agoCan you explain this statement a little bit more clearly? -
"If I set one off the states so that both of the LED's are off then on startup only the LED that is turned on during one of the states will display. Again the program will then run as expected " Also, at startup do both the LEDs just flash on for a short period and then start exhibiting normal behavior? Is there a pulldown on those pins? You shouldn't use clocks generated in a process like you have (CLK_TEMP_6). The behavior can be odd. Use the fast clock SYS_CLK_IN to clock the process and then create a pulse that goes high for 1clk cycle every 1Mhz or whatever (similar to how you generated CLK_TEMP_6) and use it as an enable signal instead. Something like this process( SYS_CLK_IN ) begin if rising_edge( SYS_CLK_IN ) then if( one_mhz_pulse = '1' ) then case .... end if;[/INDENT] endif;[/INDENT] end process;