Add some stubbed out modules for the first bit
ci/woodpecker/push/test-workflow Pipeline was successful

Hopefully theses are right ...
This commit is contained in:
2025-05-16 17:57:26 -07:00
parent 831e588986
commit 34d62a197f
4 changed files with 54 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
//NOTE: you should drive this with a slow clock to actually debounce input
module Debouncer(input logic clk, input reset, input source, output wire out);
module debouncer(input logic clk, input reset, input source, output wire out);
logic pressed;
assign out = pressed;
+20
View File
@@ -0,0 +1,20 @@
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 wire [3:0] 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
+10
View File
@@ -0,0 +1,10 @@
module seconds_display(
input logic clk,
input logic reset,
input [$clog2(60)-1:0] counter,
output [7:0] display_tens,
output [7:0] display_ones
);
endmodule