soc/cores/cpu/eos_s3: pass input clocks through gclkbuff

This commit is contained in:
Gwenhael Goavec-Merou 2021-11-14 17:48:14 +01:00
parent ffda9bbece
commit 637ab39364
1 changed files with 12 additions and 2 deletions

View File

@ -47,14 +47,24 @@ class EOS_S3(CPU):
# EOS-S3 Clocking --------------------------------------------------------------------------
pbus_rst = Signal()
eos_s3_0_clk = Signal()
eos_s3_0_rst = Signal()
eos_s3_1_clk = Signal()
eos_s3_1_rst = Signal()
self.clock_domains.cd_eos_s3_0 = ClockDomain()
self.clock_domains.cd_eos_s3_1 = ClockDomain()
self.specials += Instance("gclkbuff",
i_A = eos_s3_0_clk,
o_Z = ClockSignal("eos_s3_0")
)
self.specials += Instance("gclkbuff",
i_A = eos_s3_0_rst | pbus_rst,
o_Z = ResetSignal("eos_s3_0")
)
self.specials += Instance("gclkbuff",
i_A = eos_s3_1_clk,
o_Z = ClockSignal("eos_s3_1")
)
self.specials += Instance("gclkbuff",
i_A = eos_s3_1_rst | pbus_rst,
o_Z = ResetSignal("eos_s3_1")
@ -92,9 +102,9 @@ class EOS_S3(CPU):
# Clocking.
# ---------
o_Sys_Clk0 = ClockSignal("eos_s3_0"),
o_Sys_Clk0 = eos_s3_0_clk,
o_Sys_Clk0_Rst = eos_s3_0_rst,
o_Sys_Clk1 = ClockSignal("eos_s3_1"),
o_Sys_Clk1 = eos_s3_1_clk,
o_Sys_Clk1_Rst = eos_s3_1_rst,
# Packet FIFO.