Wednesday, February 08, 2012     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: array initialization-1b (system-verilog)
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
borgonov69
Posts: 0
Online: User is Offline
8/29/2007 9:14 AM  
Using the IUS 5.83 version, I'm trying to
compile these simple SV code lines:

parameter    ports_num                  = 4;      // ports number

integer px_num[ports_num-1:0]    // pixel num x port


initial
begin
  px_num[ports_num-1:0] = {default:4'h6};
end


and I got the following errors

file: /IPREUSE/DATABASE/INTERNAL/DIG/INPROGRESS/gborgo/simd_A0_a/config/../generic/rtl/svlog/shm.v
  px_num[ports_num-1:0] = {default:4'h6};
                                 |
ncvlog: *E,ILLPRI (/IPREUSE/DATABASE/INTERNAL/DIG/INPROGRESS/gborgo/simd_A0_a/config/../generic/rtl/svlog/shm.v,119|33): illegal expression primary Β.2(IEEE)].
        module simd.shm:v
                errors: 1, warnings: 0



Is it a problem of the IUS 5.83 version ?

Thanks
BR
Giampiero Borgonovo
tpylant
Posts: 87
Online: User is Offline
8/29/2007 10:53 AM  
The error is caused because you used specified a range on the assignment after already declaring the type. You have two choices for the fix.

  integer px_num[ports_num-1:0] = '{default:4'h6};
or

  integer px_num[ports_num-1:0]
  initial begin
    px_num = '{default:4'h6};
  end

For more examples, refer to IEEE1800, sec 8.13.

Tim
borgonov69
Posts: 0
Online: User is Offline
8/30/2007 1:42 AM  
This solution solves the syntax issue.

integer px_num[ports_num-1:0] = '{default:4'h6};


The issue is originated by the Esperan System verilog for designers manual (version 2.7) that I'm using
as reference.

Thanks.
BR
Giampiero
Posting to forums is available to community members only.
Login or Register

Forums > Functional Verification > SystemVerilog > array initialization-1b (system-verilog)


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.