litex/miscope/std.py

23 lines
406 B
Python
Raw Normal View History

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)