litex/miscope/std.py
2014-05-20 09:56:35 +02:00

23 lines
No EOL
406 B
Python

from migen.genlib.record import *
def rec_dat(width):
layout = [
("stb", 1, DIR_M_TO_S),
("dat", width, DIR_M_TO_S)
]
return Record(layout)
def rec_hit():
layout = [
("stb", 1, DIR_M_TO_S),
("hit", 1, DIR_M_TO_S)
]
return Record(layout)
def rec_dat_hit(width):
layout = [
("stb", 1, DIR_M_TO_S),
("hit", 1, DIR_M_TO_S),
("dat", width, DIR_M_TO_S)
]
return Record(layout)