• 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. xmvlog warning: *W,DUPATR duplicate attribute name (trans...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 65
  • Views 2061
  • 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

xmvlog warning: *W,DUPATR duplicate attribute name (trans)

galenxiao
galenxiao over 3 years ago

When I use xrun to do simulation, many warnings are reported as below:

-------------------------------------------------------------------------------

file: /proj/example/rtl/axi2local.v
(* covered_fsm, channel, is="IntCurState", os="IntNextState", trans="IDLE->IDLE", trans="IDLE->WAIT", trans="WAIT->WAIT", trans="WAIT->RSP", trans="RSP->IDLE", trans="RSP->RSP" *)
|
xmvlog: *W,DUPATR (/proj/example/rtl/axi2local.v,12669|87): duplicate attribute name (trans).

-------------------------------------------------------------------------------

It seems that xrun think it's not correct to use multiple "trans" attibute. But I think this is allowed in Verilog-2001 standard. I've seen this kind of code many times. Am I right?

Thanks a lot!

  • Cancel
  • StephenH
    StephenH over 3 years ago

    From the IEEE1800-2017 SystemVerilog standard (which supersedes the Verilog-2001 standard), clause 5.12 states:

    "If the same attribute name is defined more than once for the same language element, the last attribute value shall be used, and a tool can issue a warning that a duplicate attribute specification has occurred."

    So the tool is correctly giving you a warning here. If you don't care for the warning, add "-nowarn DUPATR" to your compilation command.

    • 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