Forum Discussion

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

my modelsim doesn't show any clock pulsing

i have attached my testbench and counter code as a simple example. Im new to quartus II, so please do pardon if it is very simple to operate. I am too used to programming in C and having the benefit of printf for debugging.

i created the testbench by creating waveforms and modifiying them in modelsim program.

3 Replies

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

    The testbench neither toggles the clock nor generates a reset signal.

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

    How about by writing some code to generate a clock and a reset? something like:

    clk <= not clk after 10 ns; --50 MHz clock

    reset <= '1', '0' after 50 ns;