Sign in
opensecura
/
3p
/
renode
/
renode
/
12c4ae7de3b7736aaf55a22d24dd76845bec4de6
/
.
/
scripts
/
pydev
/
rolling-bit.py
blob: d27fe9f3fe6410cf042f26b878d952185d782bd7 [
file
] [
log
] [
blame
]
if
request
.
isInit
:
lastVal
=
0
else
:
if
lastVal
==
0
:
lastVal
=
1
else
:
lastVal
=
(
lastVal
<<
1
)
&
0xFFFFFFFF
request
.
value
=
lastVal
self
.
NoisyLog
(
"%s on ROLLING_BIT at 0x%x, value 0x%x"
%
(
str
(
request
.
type
),
request
.
offset
,
request
.
value
))