Altera_Forum
Honored Contributor
16 years agoConversion from output to input base of VHDL module
Hey,everybody.
I am constructing an VHDL code for clock divider and specification of 2 pins. I need to trigger 2 pins using DE2 board for 1 clock cycle(auto trigger down itself after 1 clock cycle). However, i have no idea how to convert that output of my clock divider for the clock of my pin specification. Can anyone please help me? My clock divider convert 27MHz to 500KHz and i need to trigger these 2 pins(buttons from DE2 board) using 500kHz. My code for the pin specification are: process(clkin) --- i think my problem is here!!! begin if A0 = '1' and (rising_edge(clkin)) then A0_out <= '1'; count1 := '1'; if count1='1' and (rising_edge(clkin)) then A0_out<= '0'; count1 := '0'; end if; end if; end process; process(clkin) begin if convst = '1' and (rising_edge(clkin)) then convst_out <= '1'; count2 := '1'; if count2='1' and (rising_edge(clkin)) then convst_out<= '0'; count2 := '0'; end if; end if; end process;