use new migen API

This commit is contained in:
Florent Kermarrec 2013-06-16 13:12:57 +02:00
parent 5c298f406c
commit 89a8d8daf3
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class RLE:
If(diff_rising.o & (~rle_max), If(diff_rising.o & (~rle_max),
self.stb_o.eq(1), self.stb_o.eq(1),
self.dat_o[self.width-1].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, ).Elif(diff_d | rle_max,
self.stb_o.eq(stb_i_d), self.stb_o.eq(stb_i_d),
self.dat_o.eq(dat_i_d) self.dat_o.eq(dat_i_d)