Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

framebuffer/dvi: minor fixes

  • Loading branch information...
commit 1672c4a176ac363d1d2c84421395cfb7c1e15074 1 parent ea05031
Sébastien Bourdeauducq authored September 18, 2013
2  make.py
@@ -17,7 +17,7 @@ def build(platform_name, build_bitstream, build_header, *soc_args, **soc_kwargs)
17 17
 INST "mxcrg/rd_bufpll" LOC = "BUFPLL_X0Y3";
18 18
 
19 19
 PIN "mxcrg/bufg_x1.O" CLOCK_DEDICATED_ROUTE = FALSE;
20  
-PIN "pix2x_bufg.O" CLOCK_DEDICATED_ROUTE = FALSE;
  20
+PIN "dviout_pix_bufg.O" CLOCK_DEDICATED_ROUTE = FALSE;
21 21
 """)
22 22
 
23 23
 	if hasattr(soc, "fb"):
3  milkymist/framebuffer/dvi.py
@@ -145,6 +145,9 @@ def __init__(self, serdesstrobe, pads):
145 145
 		self.submodules.es1 = _EncoderSerializer(serdesstrobe, pads.data1_p, pads.data1_n)
146 146
 		self.submodules.es2 = _EncoderSerializer(serdesstrobe, pads.data2_p, pads.data2_n)
147 147
 		self.comb += [
  148
+			self.es0.d.eq(self.r),
  149
+			self.es1.d.eq(self.g),
  150
+			self.es2.d.eq(self.b),
148 151
 			self.es0.c.eq(Cat(self.hsync, self.vsync)),
149 152
 			self.es1.c.eq(0),
150 153
 			self.es2.c.eq(0),
4  milkymist/framebuffer/phy.py
@@ -141,8 +141,8 @@ def __init__(self, pads_vga, pads_dvi):
141 141
 				Instance("BUFPLL", p_DIVIDE=5,
142 142
 					i_PLLIN=pll_clk0, i_GCLK=ClockSignal("pix2x"), i_LOCKED=pll_locked,
143 143
 					o_IOCLK=self.cd_pix10x.clk, o_LOCK=locked_async, o_SERDESSTROBE=self.serdesstrobe),
144  
-				Instance("BUFG", name="pix2x_bufg", i_I=pll_clk1, o_O=self.cd_pix2x.clk),
145  
-				Instance("BUFG", i_I=pll_clk2, o_O=self.cd_pix.clk),
  144
+				Instance("BUFG", i_I=pll_clk1, o_O=self.cd_pix2x.clk),
  145
+				Instance("BUFG", name="dviout_pix_bufg", i_I=pll_clk2, o_O=self.cd_pix.clk),
146 146
 				MultiReg(locked_async, mult_locked, "sys")
147 147
 			]
148 148
 

0 notes on commit 1672c4a

Please sign in to comment.
Something went wrong with that request. Please try again.