Forum Discussion

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

De2_tv

This is a part from module Reset_Delay in DE2_TV project:

begin

if(Cont!=22'h3FFFFF)

Cont <= Cont+1;

if(Cont>=22'h1FFFFF)

oRST_0 <= 1;

if(Cont>=22'h2FFFFF)

oRST_1 <= 1;

if(Cont>=22'h3FFFFF)

oRST_2 <= 1;

endbegin

I can't understand this part, why are used these numbers?

could someone help me

Thanks

1 Reply

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

    its some kind of reset sequence, you could calculate the time between each reset by looking at the count value and clock frequency. i'm not sure why the resets have this sequence, but i would start by looking at what each reset is connected to