2014-09-23 17:03:32 -04:00
|
|
|
from migen.fhdl.std import *
|
2014-09-24 08:28:52 -04:00
|
|
|
from migen.genlib.record import *
|
2014-09-23 17:03:32 -04:00
|
|
|
|
2014-09-23 18:01:01 -04:00
|
|
|
ALIGN_VAL = 0x7B4A4ABC
|
|
|
|
SYNC_VAL = 0xB5B5957C
|
|
|
|
|
2014-09-24 08:28:52 -04:00
|
|
|
def ones(width):
|
2014-09-23 17:03:32 -04:00
|
|
|
return 2**width-1
|