SDVD/design/playback_controller.sv
Waylon Cude 2fde75a330 Added a in-progress top file
Some of this stuff should get split out into 7-segment logic probably,
having logic in the top file seems like a bad call
2025-05-19 15:21:53 -07:00

24 lines
527 B
Systemverilog

`include "sdvd_defs.sv"
import sdvd_defs::SPEED;
module playback_controller(
// This clock should be reasonably slow
input logic clk,
input logic reset,
// Play and pause are the same button
input logic play,
input logic ff,
// Output is 0, 1x, 2x, 4x, or 8x
output SPEED speed
);
wire play_pulse,ff_pulse;
// NOTE: These might need to be hooked to an even lower clock? Not sure
debouncer playDebouncer (clk,reset,play,play_pulse);
debouncer ffDebouncer (clk,reset,ff,ff_pulse);
endmodule