soc/cores/icap: Minor cosmetic cleanups.
This commit is contained in:
parent
e6f1d677e7
commit
19b1e50cbd
|
@ -66,15 +66,13 @@ class ICAP(Module, AutoCSR):
|
||||||
|
|
||||||
# ICAP instance
|
# ICAP instance
|
||||||
if not simulation:
|
if not simulation:
|
||||||
self.specials += [
|
self.specials += Instance("ICAPE2",
|
||||||
Instance("ICAPE2",
|
p_ICAP_WIDTH = "X32",
|
||||||
p_ICAP_WIDTH = "X32",
|
i_CLK = ClockSignal("icap"),
|
||||||
i_CLK = ClockSignal("icap"),
|
i_CSIB = _csib,
|
||||||
i_CSIB = _csib,
|
i_RDWRB = 0,
|
||||||
i_RDWRB = 0,
|
i_I = Cat(*[_i[8*i:8*(i+1)][::-1] for i in range(4)]),
|
||||||
i_I = Cat(*[_i[8*i:8*(i+1)][::-1] for i in range(4)]),
|
)
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
# CSR
|
# CSR
|
||||||
if with_csr:
|
if with_csr:
|
||||||
|
@ -160,15 +158,13 @@ class ICAPBitstream(Module, AutoCSR):
|
||||||
|
|
||||||
# ICAP instance ----------------------------------------------------------------------------
|
# ICAP instance ----------------------------------------------------------------------------
|
||||||
if not simulation:
|
if not simulation:
|
||||||
self.specials += [
|
self.specials += Instance("ICAPE2",
|
||||||
Instance("ICAPE2",
|
p_ICAP_WIDTH = "X32",
|
||||||
p_ICAP_WIDTH="X32",
|
i_CLK = ClockSignal("icap"),
|
||||||
i_CLK=ClockSignal("icap"),
|
i_CSIB = _csib,
|
||||||
i_CSIB=_csib,
|
i_RDWRB = 0,
|
||||||
i_RDWRB=0,
|
i_I = Cat(*[_i[8*i:8*(i+1)][::-1] for i in range(4)])
|
||||||
i_I=Cat(*[_i[8*i:8*(i+1)][::-1] for i in range(4)]),
|
)
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
def add_timing_constraints(self, platform, sys_clk_freq, sys_clk):
|
def add_timing_constraints(self, platform, sys_clk_freq, sys_clk):
|
||||||
platform.add_period_constraint(self.cd_icap.clk, 16*1e9/sys_clk_freq)
|
platform.add_period_constraint(self.cd_icap.clk, 16*1e9/sys_clk_freq)
|
||||||
|
|
Loading…
Reference in New Issue