Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

delay generation problem

hi,

i have done a vhdl project with quartus and call it with nios,

I don't have good result do to a delay generation.

please how can i repair my work and have this result after this delay??

thank you

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Your problem description isn't very clear. If your VHDL component needs some time to process a request, you can have a status register with a "busy" or a "done" flag to tell the software to wait.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Daixiwen,

    can you tell me how to add this register?? If you have an example it will be wonderful and thank you very match.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It depends on how you made your component. Show us your code and it will be easier to help you.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ok this is my code:

    ENTITY comp IS

    PORT

    (

    a : IN STD_LOGIC_VECTOR (31 DOWNTO 0);

    result : OUT STD_LOGIC

    );

    END comp ;

    ARCHITECTURE SYN OF comp IS

    begin

    process (a)

    begin

    if a=25 then result <= '1';

    else result <= '0';

    end if;

    end process;

    END SYN;
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    okay, now what do you want to do and where do you need to have a delay?