anyone could help me with the $random system task problem?

Status
Not open for further replies.

shiningblue

Newbie level 6
Joined
Jan 25, 2005
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
USA
Activity points
92
vsim-pli-3691

I use the system task $random in my design, like:

a_in = {$random(0)};

there is no error of compiling, but when simulating, there is an error:

Error: (vsim-PLI-3691) : Expected a system task, not a system function '$random'.

anyone could help me to fix this problem?

thanks.
 

expected a system task, not a system function

what is the type of a_in? is it an array by any chance?
 

expected a system task not a system function


It's better to demonstrate your code context!

Thomson
 

vsim expected a system task not a system function


What exactly are you trying to do? Assign a random value to a_in? Just use:

a_in = $random;

HTH
Ajeetha, CVC
www.noveldv.com
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…