ssingh Posted February 7, 2013 Report Share Posted February 7, 2013 What would be the constraint to generate unique elements in an array. For ex - bit [3:0] data [15:0]; I want all the 16 elements of this data aray to be assigned unique values. Quote Link to comment Share on other sites More sharing options...
dave_59 Posted February 7, 2013 Report Share Posted February 7, 2013 See http://go.mentor.com/ready-for-systemverilog-2012 for an easy way to do this in SystemVerilog 2012. Otherwise there's a link to a solution using the existing syntax. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.