diff options
| author | 2022-10-22 18:34:54 -0400 | |
|---|---|---|
| committer | 2022-10-22 18:34:54 -0400 | |
| commit | 758daa5996639447be8a8eeeaec80eb7c3032f98 (patch) | |
| tree | 652f4269e26c8a624b9bd52519b12d789c9237c8 /tests/read_only_mode_template.v | |
| parent | v0.1 (diff) | |
rewrite entire test harness
Diffstat (limited to 'tests/read_only_mode_template.v')
| -rw-r--r-- | tests/read_only_mode_template.v | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/tests/read_only_mode_template.v b/tests/read_only_mode_template.v deleted file mode 100644 index cd10c7d..0000000 --- a/tests/read_only_mode_template.v +++ /dev/null @@ -1,57 +0,0 @@ -/* (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 read_only_mode@MODE@ ( - input clk, - input activate, - input ss, - input rdy, - output master_finished -); - -wire miso; -wire sck; -wire ss_L = !ss; -reg [23:0] from_slave_data; -reg finished; -reg err; - -spi_master_no_write -#( - .POLARITY(@POLARITY@), - .PHASE(@PHASE@) -) master ( - .clk(clk), - .from_slave(from_slave_data), - .miso(miso), - .sck_wire(sck), - .finished(master_finished), - .arm(activate) -); - -reg [23:0] to_master = 24'hF4325F; - -spi_slave_no_read -#( - .POLARITY(@POLARITY@), - .PHASE(@PHASE@) -) slave ( - .clk(clk), - .sck(sck), - .ss_L(ss_L), - .to_master(to_master), - .miso(miso), - .finished(finished), - .rdy(rdy), - .err(finished) -); - -initial begin - $dumpfile("read_only_mode@MODE@.vcd"); - $dumpvars(); -end - -endmodule |
