• 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. Part-Select of an Array in SystemVerilog ... Not supported...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 65
  • Views 22029
  • 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

Part-Select of an Array in SystemVerilog ... Not supported by Incisive ?

Almendrico
Almendrico over 14 years ago

Hi all,

I am trying to do something very simple with SystemVerilog

I have an 2-dimensional array defined as

typedef logic [3:0] SR8x4 [0:7];

and I just want to do a shift operation between the unpacked elements, i.e:

SR8x4[1:7] <= SR8x4[0:6];

However, I am getting the following errors:

           SR8x4[1:7] <= SR8x4[0:6];
              |
ncvlog: *E,NOPSOM (ShiftRegister.sv,27|14): Part-select or indexed part-select cannot be applied to memory [4.2.2(IEEE)].
          SR8x4[1:7] <= SR8x4[0:6];
                            |
ncvlog: *E,NOPSOM (ShiftRegister.sv,27|28): Part-select or indexed part-select cannot be applied to memory [4.2.2(IEEE)].
        module worklib.ShiftRegister:sv
                errors: 2, warnings: 0

I believe the instruction is correct, so I think this SystemVerilog syntax is not supported by the tool ... I am using incisive 9.20

Thanks

 

 

  • Cancel
  • Shalom B
    Shalom B over 14 years ago

    Correct, this is not yet implemented in Incisive 9.2.

    It is scheduled for sometime in 10.2

     Shalom

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tpylant
    tpylant over 14 years ago
    Here is a workaround until it is supported:
    module test;
      logic [3:0] arr [0:7] = '{0,1,2,3,4,5,6,7};

      initial begin
        $write("Pre");
        foreach (arr[i])
          $write(arr[i]);
        $write("\n");
        for (int l=1; <3; l++) begin
          foreach (arr[i])
            arr[i+1] <= arr[i];
          $write("%0d: ", l);
          foreach (arr[i])
            $write(arr[i]);
          $write("\n");
        end
      end
    endmodule

     

    Tim

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Almendrico
    Almendrico over 14 years ago

     Thank you guys for the answers

    • 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