sim: Add voltage() function to clocked_object
authorDavid Guillen Fandos <david.guillen@arm.com>
Wed, 17 Jun 2015 15:49:40 +0000 (16:49 +0100)
committerDavid Guillen Fandos <david.guillen@arm.com>
Wed, 17 Jun 2015 15:49:40 +0000 (16:49 +0100)
commitc0c3316e31436e83e960c0b0e5652da6983ed17c
tree11c5cdde0d78bfcefd9b23aee548e865ff743e9d
parent21f8242430c7a1935a892aac1c26b970b306b113
sim: Add voltage() function to clocked_object

Adding voltage function which returns the current voltage
for a given clocked object. It's handy for power models and
similar stuff that need to retrieve voltage. Function
frequency() is already there, so I see no reason for not having
this one too.
src/sim/clocked_object.hh