Forum Discussion

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

Quartus II simulator

Dear expert,

Does anyone know how to set the timescale in Quartus II simulator?

Let say by default Quartus II timescale is set to 1ps. I intended to change the timescale to 1ns. Is it possible to do it? How?

Anyone help would be greatly appreciated....Thank you very much.....

2 Replies

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

    eeeh nobody loves you, davchang.it took 3 years for someone to answer you.

    in verilog hdl

    its `timescale 1 ps / 1 ps

    for example

    i have changed so that modelsim will think that all the simulation will happen in 1 nanosecond timespace and the precision of simulation (simulation step) will be 10ps.

    if you want to increase simulation detalisation,precision, make 1ps instead of 10ps.

    `timescale 1ns / 10ps

    module(signal,clock,out)

    //some code here

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

    Alternatively you can compile the code with:

    Modelsim:

    vlog -work work -timescale " 1 ns / 1 ps" YOURFILE.v

    Synopsys VCS:

    vlogan -timescale=1ns/10ps YOURFILE.v

    Xilinx:

    vlogcomp -timescale=1ns/10ps YOURFILE.v

    Aldec:

    vlog -work work -timescale 1ns/1ps YOURFILE.v

    Best Regards