Apr 27, 2006 #1 S 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.
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.
Apr 28, 2006 #2 V vivek Member level 4 Joined May 19, 2005 Messages 69 Helped 10 Reputation 20 Reaction score 1 Trophy points 1,288 Activity points 2,040 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 what is the type of a_in? is it an array by any chance?
Apr 28, 2006 #3 T Thomson Full Member level 3 Joined Oct 15, 2004 Messages 181 Helped 4 Reputation 8 Reaction score 1 Trophy points 1,298 Activity points 2,400 expected a system task not a system function shiningblue said: 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. Click to expand... It's better to demonstrate your code context! Thomson
expected a system task not a system function shiningblue said: 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. Click to expand... It's better to demonstrate your code context! Thomson
Apr 28, 2006 #4 A aji_vlsi Advanced Member level 2 Joined Sep 10, 2004 Messages 643 Helped 85 Reputation 170 Reaction score 12 Trophy points 1,298 Location Bangalore, India Activity points 4,944 vsim expected a system task not a system function shiningblue said: 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. Click to expand... 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
vsim expected a system task not a system function shiningblue said: 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. Click to expand... 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