05.03.2013 Views

Automotive Innovators Hit High Gear in - Xilinx

Automotive Innovators Hit High Gear in - Xilinx

Automotive Innovators Hit High Gear in - Xilinx

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

At the end of every frame we store the<br />

results of the puck hunt <strong>in</strong> a shift register,<br />

clocked every frame (about 1/30th of a second).<br />

Notice how you can just copy this code<br />

four more times and have a six-deep x1 shift<br />

register runn<strong>in</strong>g to store the puck <strong>in</strong>formation<br />

<strong>in</strong> time so we can offset the actual strum<br />

button press x/30th second to wait for the<br />

puck to be <strong>in</strong> proper position on the screen.<br />

process(v_sync)<br />

beg<strong>in</strong><br />

if v_sync'event and v_sync = '0'<br />

then<br />

for i <strong>in</strong> 0 to SR_SIZE - 2 loop<br />

shift_reg_y(i+1)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!