diff options
| author | 2022-07-21 13:00:09 -0400 | |
|---|---|---|
| committer | 2022-07-21 13:00:09 -0400 | |
| commit | 1b612a75e734084196deadb929dffc9181472b08 (patch) | |
| tree | de97b23f42bb63844b093ea840c357cdaa49b4b6 /tests/mode_template.v | |
| parent | documentation (diff) | |
autogenerate mode tests
Diffstat (limited to 'tests/mode_template.v')
| -rw-r--r-- | tests/mode_template.v | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/mode_template.v b/tests/mode_template.v new file mode 100644 index 0000000..1df59b8 --- /dev/null +++ b/tests/mode_template.v @@ -0,0 +1,34 @@ +/* (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/. + */ + +module mode@MODE@ ( + input clk, + input [23:0] data_ctrl, + input activate, + input ss, + input rdy, + output master_finished +); + +spi_write_read +#( + .POLARITY(@POLARITY@), + .PHASE(@PHASE@) +) base ( + .clk(clk), + .data_ctrl(data_ctrl), + .activate(activate), + .master_finished(master_finished), + .ss(ss), + .rdy(rdy) +); + +initial begin + $dumpfile("mode@MODE@.vcd"); + $dumpvars(); +end + +endmodule |
