Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
SYSTEM VERILOG Randomization queries
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
NARESH SAMBHNANI  
View profile  
 More options Jul 18 2012, 2:21 am
Newsgroups: comp.lang.verilog
From: NARESH SAMBHNANI <naresh.the....@gmail.com>
Date: Tue, 17 Jul 2012 23:21:51 -0700 (PDT)
Local: Wed, Jul 18 2012 2:21 am
Subject: SYSTEM VERILOG Randomization queries
I am facing a problem in randomizing an array. As per my need:-
I have an array of 16 elements having 9 bits each. My need is to set 15 elements to a known value and have to randomize an element. which element has to be randomized is to be choosen randomly. And only one element has to be randomized.

One solution i have seen that randomize the element inside the constraints and map the fixed values in post_randomized task.

Is there any other way to this stuff ??


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Miles  
View profile  
 More options Jul 19 2012, 10:14 am
Newsgroups: comp.lang.verilog
From: Robert Miles <mile...@Usenet-News.net>
Date: Thu, 19 Jul 2012 09:14:42 -0500
Local: Thurs, Jul 19 2012 10:14 am
Subject: Re: SYSTEM VERILOG Randomization queries
On 7/18/2012 1:21 AM, NARESH SAMBHNANI wrote:

> I am facing a problem in randomizing an array. As per my need:-
> I have an array of 16 elements having 9 bits each. My need is to set 15 elements to a known value and have to randomize an element. which element has to be randomized is to be choosen randomly. And only one element has to be randomized.

> One solution i have seen that randomize the element inside the constraints and map the fixed values in post_randomized task.

> Is there any other way to this stuff ??

An idea to consider:  Set up another array with 9 bits but only one
element.  Randomize this new array.  Set the 15 elements of the
original array to their known values.  Make a random choice of one
of the 15 elements, then copy the contents of the new array into
that element.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcus Harnisch  
View profile  
 More options Jul 30 2012, 1:11 pm
Newsgroups: comp.lang.verilog
From: Marcus Harnisch <marcus.harni...@doulos.com>
Date: Mon, 30 Jul 2012 19:11:27 +0200
Local: Mon, Jul 30 2012 1:11 pm
Subject: Re: SYSTEM VERILOG Randomization queries

NARESH SAMBHNANI <naresh.the....@gmail.com> writes:
> My need is to set 15 elements to a known value and have to randomize
> an element.

Are these known values always the same? Could you provide an example?
From the little we know about the actual requirements, I would probably
not randomize the array itself but use separate rand variables for both
index and value and assign the results in post_randomize, as you
suggested.

Cheers
Marcus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »