• 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. Inherit in PSL for VUNIT (IFV verification)

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 65
  • Views 14048
  • 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

Inherit in PSL for VUNIT (IFV verification)

alexlop
alexlop over 16 years ago

 Hi,

I need an advise/suggestion.

I have a verilog module  which has N outputs of a specific protocol. I need to check that it generates the protocol correctly.

Can I write a VUNIT for a single output and then somehow instance this VUNIT (including binding it to an apropriate output wire) for each of the N outputs? (Instead of writing the same assertions N times)

Thank you!

P.S.

If you have other suggestions how to make it more simple, I would be glad to hear.

 

  • Cancel
  • TAM1
    TAM1 over 16 years ago

    A PSL vunit is bound to a Verilog instance or module, so you can't use it multiple times on a signal by signal basis. But you do have a couple of options that you can use to keep from having to repeat the assertions multiple times.

    The easiest would be to use paramterized properties and assertions.

    property no_grant_wo_req ( boolean gnt, req ) = never ( gnt && !req );
    no_grant_port1: assert no_grant_wo_req ( gnt[1], req[1] );
    no_grant_port2: assert no_grant_wo_req ( gnt[2], req[2] );
    ...

    Another common method is to create a "verification component" (also commonly called a "vcomp") to check the protocol. This is a Verilog module that will check the operation of the protocol. It can be instantiated as many times as necessary and wired up to each of the ports or signals in question. This is the way that the OVL and IAL assertion libraries work.

    module protocol_checker ( input clk, gnt, req, ... );
      // psl no_grant_wo_req: assert never ( gnt && !req ) @(posedge clk);
      ...
    endmodule

    These checker modules could then be instantiated and wired-up in the DUT's HDL (perhaps surrounded with some `defines or systhesis pragmas).

    If you didn't want to edit the original HDL source code, you could use a single vunit to create multiple copies of this vcomp and wire them up to the ports of the DUT.  We can use a vunit for more than just PSL, we can actually put the HDL statements that will instantiate the checker into our vunit.

    vunit dut_checker(dut) {
      protocol_checker chk1 ( clk, gnt[1], req[1], ... );
      protocol_checker chk2 ( clk, gnt[2], req[2], ... );
    }

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • alexlop
    alexlop over 16 years ago

     Thanks!

    You helped a lot!

    • 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