Skip to content

Commit 0fab0fc

Browse files
committed
Merge branch 'develop' into rc-1.5.0
2 parents af11bf5 + a35cc17 commit 0fab0fc

24 files changed

+3318
-63
lines changed

tests/extension/thread_/fixed_const/test_thread_fixed_const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
end
111111
end
112112
th_blink_5: begin
113-
_th_blink_next_val_1 <= _th_blink_next_val_1 + 256;
113+
_th_blink_next_val_1 <= _th_blink_next_val_1 + 'sd128;
114114
th_blink <= th_blink_6;
115115
end
116116
th_blink_6: begin

tests/extension/thread_/fixed_const/thread_fixed_const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def blink(times):
2929
led.value = 0
3030
next_val = vthread.fixed.FixedConst(0, 8)
3131
for i in range(times):
32-
next_val = next_val + 1
33-
led.value = next_val
32+
next_val = next_val + vthread.fixed.FixedConst(0.5, 8)
33+
led.value = next_val.int_part
3434
print("led = ", led)
3535

3636
th = vthread.Thread(m, 'th_blink', clk, rst, blink)

0 commit comments

Comments
 (0)