@@ -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 commit comments