Skip to content

Commit

Permalink
framebuffer/dvi: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Sep 18, 2013
1 parent ea05031 commit 1672c4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion make.py
Expand Up @@ -17,7 +17,7 @@ def build(platform_name, build_bitstream, build_header, *soc_args, **soc_kwargs)
INST "mxcrg/rd_bufpll" LOC = "BUFPLL_X0Y3";
PIN "mxcrg/bufg_x1.O" CLOCK_DEDICATED_ROUTE = FALSE;
PIN "pix2x_bufg.O" CLOCK_DEDICATED_ROUTE = FALSE;
PIN "dviout_pix_bufg.O" CLOCK_DEDICATED_ROUTE = FALSE;
""")

if hasattr(soc, "fb"):
Expand Down
3 changes: 3 additions & 0 deletions milkymist/framebuffer/dvi.py
Expand Up @@ -145,6 +145,9 @@ def __init__(self, serdesstrobe, pads):
self.submodules.es1 = _EncoderSerializer(serdesstrobe, pads.data1_p, pads.data1_n)
self.submodules.es2 = _EncoderSerializer(serdesstrobe, pads.data2_p, pads.data2_n)
self.comb += [
self.es0.d.eq(self.r),
self.es1.d.eq(self.g),
self.es2.d.eq(self.b),
self.es0.c.eq(Cat(self.hsync, self.vsync)),
self.es1.c.eq(0),
self.es2.c.eq(0),
Expand Down
4 changes: 2 additions & 2 deletions milkymist/framebuffer/phy.py
Expand Up @@ -141,8 +141,8 @@ def __init__(self, pads_vga, pads_dvi):
Instance("BUFPLL", p_DIVIDE=5,
i_PLLIN=pll_clk0, i_GCLK=ClockSignal("pix2x"), i_LOCKED=pll_locked,
o_IOCLK=self.cd_pix10x.clk, o_LOCK=locked_async, o_SERDESSTROBE=self.serdesstrobe),
Instance("BUFG", name="pix2x_bufg", i_I=pll_clk1, o_O=self.cd_pix2x.clk),
Instance("BUFG", i_I=pll_clk2, o_O=self.cd_pix.clk),
Instance("BUFG", i_I=pll_clk1, o_O=self.cd_pix2x.clk),
Instance("BUFG", name="dviout_pix_bufg", i_I=pll_clk2, o_O=self.cd_pix.clk),
MultiReg(locked_async, mult_locked, "sys")
]

Expand Down

0 comments on commit 1672c4a

Please sign in to comment.