Files
retroSoC/rtl/ip/ribp/storage/sdio.sv
T
maksyuki a87236ae33 feat: refactor RIB interfaces and update test cases
- Renamed  and  to  and  respectively across various test files and modules.
- Updated response codes in tests to use new definitions ().
- Added new testbench  to validate RIB to RAM interactions.
- Created  for testing RIBP topology routing.
- Adjusted memory map tests to reflect new interface names.
- Ensured all references to old interface names were replaced in Python test scripts.
- Verified that all test cases pass with the new interface structure.
2026-08-04 16:12:22 +08:00

58 lines
1.4 KiB
Systemverilog

// Copyright (c) 2023-2026 Yuchi Miao <miaoyuchi@ict.ac.cn>
// retroSoC is licensed under Mulan PSL v2.
// You can use this software according to the terms and conditions of the Mulan PSL v2.
// You may obtain a copy of Mulan PSL v2 at:
// http://license.coscl.org.cn/MulanPSL2
// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
// See the Mulan PSL v2 for more details.
interface sdio_if ();
logic sck_o;
logic cmd_oe_o;
logic cmd_di_i;
logic cmd_do_o;
logic [3:0] dat_oe_o;
logic [3:0] dat_di_i;
logic [3:0] dat_do_o;
logic irq_o;
modport dut(
output sck_o,
output cmd_oe_o,
input cmd_di_i,
output cmd_do_o,
output dat_oe_o,
input dat_di_i,
output dat_do_o,
output irq_o
);
endinterface
module ribp_sdio (
// verilog_format: off
input logic clk_i,
input logic rst_n_i,
ribp_if.slave ribp,
sdio_if.dut sdio
// verilog_format: on
);
wire dummy0 = clk_i;
wire dummy1 = rst_n_i;
// ribp
assign ribp.rdata = '0;
assign ribp.ready = '0;
assign ribp.resp_err = 1'b0;
// sdio
assign sdio.sck_o = '0;
assign sdio.cmd_oe_o = '0;
assign sdio.cmd_do_o = '0;
assign sdio.dat_oe_o = '0;
assign sdio.dat_do_o = '0;
assign sdio.irq_o = '0;
endmodule