Forum Discussion

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

Modelsim and macro

Hello

I'm getting some trouble in modelsim. I try to simulate my circuit and I've done a .do to simulate. This line is not working.

force gf5 0 0, 0 3us, 1 3us, 1 3us, 1 3us, 0 3us

run 15 us

My wave form for GF5 is stuck at 0.

In my VHDL file the line where GF5 is concerned are:

gf5 : in std_logic;

...

logo_r <= not(gf5) and bf2;

logo_g <= gf5;

I really don't understand. When I manually force GF5 (right click in modelsim) it works.

1 Reply

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

    Ok I've understood my mistake.

    force GF5 0 0, 0 3us, 1 3us, 1 3us, 1 3us, 0 3us

    I thought the number in bold was the duration. It is the moment when it switch.

    I let the post for those who made the same mistake (hope I'm not the only one :().