• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Verilog generics on vhdl instances

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 65
  • Views 17248
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Verilog generics on vhdl instances

fbochud
fbochud over 11 years ago

 Hi,

I'm trying to use verilog generic on my vhdl instance via the defparam option of ncelab and I get the following message:

"Attempted propagation of defparam results to a non-Verilog instance"

The generic in my dut instance are not set and use the default value. Is that not supported?

 

Example: 

module tb_top;

   parameter G_DATA_WIDTH = 8;

   wire [G_DATA_WIDTH-1:0] data_in;

   wire [G_DATA_WIDTH-1:0] data_out;

  [...]

   /* DUT */
   top #(.G_DATA_WIDTH (G_DATA_WIDTH))
   my_dut (
        .clk                 (clk),
        .data_in         (data_in),
        .data_out       (data_out),
     );

endmodule

 Thank you for the help

Florian

  • Cancel
Parents
  • muffi
    muffi over 11 years ago

    NC as a tool does not allow you to propagate the new value across the language boundary. The default initial value of the parameter is taken as its value.

    The defparam statement tries to re-propagate the value of G_DATA_WIDTH in the VHDL instance and this warning suggests that the tool is not able to do so and retains the value of G_DATA_WIDTH to be 8 only.

    A VHDL generic is an elaboration time constant and we do not have a way to re-evaluate it based on a new defparam statement.

    To work around this, you can use the "-gpg" flag or a combination of “-defparam/-generic” options .

    % irun -mess ...... -generic "tb_top.my_dut.G_DATA_WIDTH => 16"

    Or

    % irun -mess ...... -gpg "tb_top.my_dut:G_DATA_WIDTH => 16"

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • muffi
    muffi over 11 years ago

    NC as a tool does not allow you to propagate the new value across the language boundary. The default initial value of the parameter is taken as its value.

    The defparam statement tries to re-propagate the value of G_DATA_WIDTH in the VHDL instance and this warning suggests that the tool is not able to do so and retains the value of G_DATA_WIDTH to be 8 only.

    A VHDL generic is an elaboration time constant and we do not have a way to re-evaluate it based on a new defparam statement.

    To work around this, you can use the "-gpg" flag or a combination of “-defparam/-generic” options .

    % irun -mess ...... -generic "tb_top.my_dut.G_DATA_WIDTH => 16"

    Or

    % irun -mess ...... -gpg "tb_top.my_dut:G_DATA_WIDTH => 16"

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • moustafakassem
    moustafakassem over 6 years ago in reply to muffi

    Hi,
    I have similar problem and I tried the solutions mentioned but still I didn't see the value of the generic changed correctly. Is this feature is not supported any more in the newer versions of Incisive.

    --
    Thanks,
    Moustafa

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information