use new migen API
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 16 Jun 2013 11:12:57 +0000 (13:12 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 16 Jun 2013 11:12:57 +0000 (13:12 +0200)
miscope/recorder.py

index 4777164219e600c7196823381a747d2533ec798e..87b7bf3de1f5af6a1db9f563758eb311e3d1dcfe 100644 (file)
@@ -137,7 +137,7 @@ class RLE:
                        If(diff_rising.o & (~rle_max),
                                self.stb_o.eq(1),
                                self.dat_o[self.width-1].eq(1),
-                               self.dat_o[:len(rle_cnt)].eq(rle_cnt)
+                               self.dat_o[:flen(rle_cnt)].eq(rle_cnt)
                        ).Elif(diff_d | rle_max,
                                self.stb_o.eq(stb_i_d),
                                self.dat_o.eq(dat_i_d)