soc/cores/hyperbus: WiP to make increase similarities between x1/x2 versions.

This commit is contained in:
Florent Kermarrec 2024-08-21 11:17:55 +02:00
parent 50f0a1057c
commit 22afa34a64
1 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ class HyperRAM(LiteXModule):
# CSn. # CSn.
pads.cs_n.reset = 2**len(pads.cs_n) - 1 pads.cs_n.reset = 2**len(pads.cs_n) - 1
self.sync.sys += pads.cs_n[0].eq(~cs) # Only supporting 1 CS. self.sync += pads.cs_n[0].eq(~cs) # Only supporting 1 CS.
# Clk. # Clk.
pads_clk = Signal() pads_clk = Signal()
@ -145,9 +145,9 @@ class HyperRAM(LiteXModule):
] ]
cases = { cases = {
0b00 : clk.eq(0), # 0° 0b00 : clk.eq(0), # 0°
0b01 : clk.eq(cs), # 90° 0b01 : clk.eq(cs), # 90° / Set Clk.
0b10 : clk.eq(cs), # 180° 0b10 : clk.eq(cs), # 180°
0b11 : clk.eq(0), # 270° 0b11 : clk.eq(0), # 270° / Clr Clk.
} }
self.sync.sys_2x += Case(clk_phase, cases) self.sync.sys_2x += Case(clk_phase, cases)