Forum Discussion

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

ModelSim Error: (vsim-3009) [TSCALE]

I downloaded and installed the ModelSim tools (Altera Starter Edition 10.0d) from the Altera website. Attempting to get thru the tutorial (Under Help in ModelSim), I get this error when I try to load test_counter (as directed on page 16 of the tutorial):

ModelSim> vsim work.test_counter# vsim work.test_counter # Loading work.test_counter# Loading work.counter# ** Error: (vsim-3009) [TSCALE] - Module 'test_counter' does not have a timeunit/timeprecision specification in effect, but other modules do.# Region: /test_counter/dut# Error loading design

Can someone please help me resolve this? Thanks. It's difficult when the tutorials don't work.

Doug

.

3 Replies

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

    Add this to the top of the file that Modelsim is complaining about:

    
    // Modelsim-ASE requires a timescale directive
    `timescale 1 ns / 1 ns
    

    Cheers,

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

    --- Quote Start ---

    Add this to the top of the file that Modelsim is complaining about:

    
    // Modelsim-ASE requires a timescale directive
    `timescale 1 ns / 1 ns
    

    --- Quote End ---

    Thanks, Dave. I appreciate it.

    Doug

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

    You can always try typing

    verror 3009

    to see if there is more information about the error you are getting. In this case, it produces

    $ verror 3009

    vsim Message# 3009:

    A module without a `timescale directive in effect, and without

    explicit timeunit and timeprecision declarations, uses the

    simulator resolution limit for both its time unit and time

    precision. This may result in incorrect delays and unintentional

    behavior in the module. Beware of simulator performance impact,

    and consider using the vlog -timescale or vopt -timescale options

    as a workaround. This message can be downgraded to a warning with

    -warning 3009, suppressed with -suppress 3009, or suppressed

    with +nowarnTSCALE.

    [DOC: QuestaSim User's Manual - Verilog Simulation Chapter]