Add some stubbed out modules for the first bit
ci/woodpecker/push/test-workflow Pipeline was successful
ci/woodpecker/push/test-workflow Pipeline was successful
Hopefully theses are right ...
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user