spi/tests/mode_template.v

35 lines
618 B
Coq
Raw Normal View History

2022-07-21 03:12:27 -04:00
/* (c) Peter McGoron 2022
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v.2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
2022-07-21 13:00:09 -04:00
module mode@MODE@ (
2022-07-21 03:12:27 -04:00
input clk,
input [23:0] data_ctrl,
input activate,
input ss,
input rdy,
output master_finished
);
spi_write_read
#(
2022-07-21 13:00:09 -04:00
.POLARITY(@POLARITY@),
.PHASE(@PHASE@)
2022-07-21 03:12:27 -04:00
) base (
.clk(clk),
.data_ctrl(data_ctrl),
.activate(activate),
.master_finished(master_finished),
.ss(ss),
.rdy(rdy)
);
initial begin
2022-07-21 13:00:09 -04:00
$dumpfile("mode@MODE@.vcd");
2022-07-21 03:12:27 -04:00
$dumpvars();
end
endmodule