mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
23 lines
No EOL
406 B
Python
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) |