Skip to content

Commit d6c1985

Browse files
jordenssbourdeauducq
authored andcommittedApr 10, 2015
s6ddrphy: redo phase_sel, get rid of CLOCK_DEDICATED_ROUTE
1 parent 603a4ef commit d6c1985

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed
 

Diff for: ‎misoclib/mem/sdram/phy/s6ddrphy.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,18 @@ def __init__(self, pads, module, rd_bitslip, wr_bitslip, dqs_ddr_alignment):
6969
# sys_clk ----____----____
7070
# phase_sel(nphases=2) 0 1 0 1 Half Rate
7171
phase_sel = Signal(log2_int(nphases))
72-
sys_clk_d = Signal()
72+
phase_half = Signal.like(phase_sel)
73+
phase_sys = Signal.like(phase_half)
74+
75+
sd_sys += phase_sys.eq(phase_half)
7376

7477
sd_sdram_half += [
75-
If(sys_clk & ~sys_clk_d,
76-
phase_sel.eq(0)
78+
If(phase_half == phase_sys,
79+
phase_sel.eq(0),
7780
).Else(
7881
phase_sel.eq(phase_sel+1)
7982
),
80-
sys_clk_d.eq(sys_clk)
83+
phase_half.eq(phase_half+1),
8184
]
8285

8386
# register dfi cmds on half_rate clk

Diff for: ‎targets/mlabs_video.py

-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ def __init__(self, platform, sdram_controller_settings=LASMIconSettings(), **kwa
6161
platform.add_platform_command("""
6262
INST "mxcrg/wr_bufpll" LOC = "BUFPLL_X0Y2";
6363
INST "mxcrg/rd_bufpll" LOC = "BUFPLL_X0Y3";
64-
65-
PIN "mxcrg/bufg_x1.O" CLOCK_DEDICATED_ROUTE = FALSE;
6664
""")
6765
platform.add_source_dir(os.path.join("misoclib", "others", "mxcrg"))
6866

Diff for: ‎targets/pipistrello.py

-3
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ def __init__(self, platform, sdram_controller_settings=LASMIconSettings(), **kwa
110110
self.ddrphy.clk4x_wr_strb.eq(self.crg.clk4x_wr_strb),
111111
self.ddrphy.clk4x_rd_strb.eq(self.crg.clk4x_rd_strb),
112112
]
113-
platform.add_platform_command("""
114-
PIN "BUFG.O" CLOCK_DEDICATED_ROUTE = FALSE;
115-
""")
116113
self.register_sdram_phy(self.ddrphy)
117114

118115
if not self.integrated_rom_size:

0 commit comments

Comments
 (0)
Please sign in to comment.