User`s manual
437 assign y1_raw = quad_corners[65:57];
438 assign x1_raw = quad_corners[75:66];
439 move_cursor move_cursor(.clk(vsync),
440 .up(btn_up_sw & ~old_btn_up),
441 .down(btn_down_sw & ~old_btn_down),
442 .left(btn_left_sw & ~old_btn_left),
443 .right(btn_right_sw & ~old_btn_right),
444 .override(override_sw),
445 .switch(quad_corner_sw),
446 .x1_raw(x1_raw),
447 .y1_raw(y1_raw),
448 .x2_raw(x2_raw),
449 .y2_raw(y2_raw),
450 .x3_raw(x3_raw),
451 .y3_raw(y3_raw),
452 .x4_raw(x4_raw),
453 .y4_raw(y4_raw),
454 .x1(x1),
455 .y1(y1),
456 .x2(x2),
457 .y2(y2),
458 .x3(x3),
459 .y3(y3),
460 .x4(x4),
461 .y4(y4),
462 .display_x(display_x),
463 .display_y(display_y));
464
465
466 ///////////////////////////////////////////////////////////////////////////////////////////////////
467 // instantiate pixels_kept module
468 ///////////////////////////////////////////////////////////////////////////////////////////////////
469 pixels_kept pixels_kept(
470 .x1(x1),
471 .y1(y1),
472 .x2(x2),
473 .y2(y2),
474 .x3(x3),
475 .y3(y3),
476 .x4(x4),
477 .y4(y4),
478 .percent_kept(percent_kept));
479
480
481 ///////////////////////////////////////////////////////////////////////////////////////////////////
482 // instantiate perspective_params module
98