[Gems-users] Writing new get function for opal, to put value in variable


Date: Thu, 4 Feb 2010 10:09:09 -0600
From: sparsh mittal ISU <sparsh@xxxxxxxxxxx>
Subject: [Gems-users] Writing new get function for opal, to put value in variable

Hello All
I want to write a script for opal, where the value of instructions committed will be read in a variable, such as
simics> $U=opal0.instructions
Or
opal0.instructions => $U
If it were a file I could have used
pipe opal0.instructions "cat >> file.txt"

I will write a new command opal0.instructions, but I am not sure, how to write a function, which returns a value, which can be put in a variable (not just printed).

I would very much appreciate any help.


--
Thanks and Regards
Sparsh Mittal
Graduate Student
Electrical and Computer Engineering
Iowa State University, Iowa, USA
[← Prev in Thread] Current Thread [Next in Thread→]