We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d00b66f commit d2d0b81Copy full SHA for d2d0b81
projects/test_marble_family/i2c/demo_i2c_baddy.py
@@ -107,6 +107,18 @@ def violation7():
107
return
108
109
110
+def violation8():
111
+ print("{:-^80s}".format(" Violation 8. Loop reads missing set_resx "))
112
+ m = marble_i2c.MarbleI2C()
113
+ # m.set_resx()
114
+ m.read("U34", 0, 1)
115
+ m.buffer_flip()
116
+ m.pause(4096) # Pause for roughly 0.24ms
117
+ m.jump(0) # Jump back to loop start
118
+ m.check_program()
119
+ return
120
+
121
122
def doViolations(argv):
123
if len(argv) > 1:
124
vMask = _int(argv[1])
@@ -120,6 +132,7 @@ def doViolations(argv):
132
violation5,
133
violation6,
134
violation7,
135
+ violation8,
136
)
137
exceptions = [False]*len(violations)
125
138
for n in range(len(violations)):
0 commit comments