This commit is contained in:
Florent Kermarrec 2013-03-22 13:50:16 +01:00
parent 5e48f9c005
commit 99a78b8e33
3 changed files with 5 additions and 7 deletions

View File

@ -31,8 +31,6 @@ mila = mila.MiLa(MILA_ADDR, trigger, recorder, csr)
dat_vcd = VcdDat(dat_w)
def capture(size):
global trigger
global recorder
global dat_vcd
sum_tt = gen_truth_table("term")
mila.trigger.sum.set(sum_tt)

View File

@ -4,13 +4,13 @@ from migen.genlib.cdc import *
from migen.bus import csr
class Spi2Csr(Module):
def __init__(self, a_w, d_w, burst_length=8):
self.a_w = a_w
self.d_w = d_w
def __init__(self, burst_length=8):
self.a_w = 14
self.d_w = 8
self.burst_length = 8
# Csr interface
self.csr = csr.Interface(self.a_w, self.d_w)
self.csr = csr.Interface()
# Spi interface
self.spi_clk = Signal()

View File

@ -16,7 +16,7 @@ class Uart2Csr(Module):
self.tx = Signal()
# Csr interface
self.csr = csr.Interface(32, 8)
self.csr = csr.Interface()
###