Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

framebuffer: fix sync generation

  • Loading branch information...
commit 0a29b74ccee1cf54396b69d98ea27d239c9b6acc 1 parent 6776e22
Sébastien Bourdeauducq authored July 01, 2012

Showing 1 changed file with 4 additions and 6 deletions. Show diff stats Hide diff stats

  1. 10  milkymist/framebuffer/__init__.py
10  milkymist/framebuffer/__init__.py
@@ -109,8 +109,6 @@ def get_fragment(self):
109 109
 		generate_en = Signal()
110 110
 		hcounter = Signal(BV(_hbits))
111 111
 		vcounter = Signal(BV(_vbits))
112  
-		hsync = Signal()
113  
-		vsync = Signal()
114 112
 		
115 113
 		comb = [
116 114
 			active.eq(hactive & vactive),
@@ -133,8 +131,8 @@ def get_fragment(self):
133 131
 			
134 132
 				If(hcounter == 0, hactive.eq(1)),
135 133
 				If(hcounter == tp.hres, hactive.eq(0)),
136  
-				If(hcounter == tp.hsync_start, hsync.eq(1)),
137  
-				If(hcounter == tp.hsync_end, hsync.eq(0)),
  134
+				If(hcounter == tp.hsync_start, self.token("dac").hsync.eq(1)),
  135
+				If(hcounter == tp.hsync_end, self.token("dac").hsync.eq(0)),
138 136
 				If(hcounter == tp.hscan,
139 137
 					hcounter.eq(0),
140 138
 					If(vcounter == tp.vscan,
@@ -146,9 +144,9 @@ def get_fragment(self):
146 144
 				
147 145
 				If(vcounter == 0, vactive.eq(1)),
148 146
 				If(vcounter == tp.vres, vactive.eq(0)),
149  
-				If(vcounter == tp.vsync_start, vsync.eq(1)),
  147
+				If(vcounter == tp.vsync_start, self.token("dac").vsync.eq(1)),
150 148
 				If(vcounter == tp.vsync_end,
151  
-					vsync.eq(0),
  149
+					self.token("dac").vsync.eq(0),
152 150
 					self.endpoints["timing"].ack.eq(1)
153 151
 				)
154 152
 			)

0 notes on commit 0a29b74

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