SummerCart64/fw/rtl/sd/sd_scb.sv

94 lines
2.0 KiB
Systemverilog
Raw Normal View History

2022-05-15 15:47:12 +02:00
interface sd_scb ();
logic [1:0] clock_mode;
logic clock_stop;
2022-05-15 15:47:12 +02:00
2022-09-08 23:36:46 +02:00
logic card_busy;
logic [10:0] rx_count;
logic [10:0] tx_count;
logic [5:0] cmd_index;
logic [31:0] cmd_arg;
logic [127:0] cmd_rsp;
logic cmd_start;
logic cmd_skip_response;
logic cmd_reserved_response;
logic cmd_long_response;
logic cmd_ignore_crc;
logic cmd_busy;
logic cmd_error;
logic dat_fifo_flush;
logic dat_start_write;
logic dat_start_read;
logic dat_stop;
logic [7:0] dat_blocks;
logic dat_busy;
logic dat_error;
2022-05-15 15:47:12 +02:00
modport controller (
output clock_mode,
2022-09-08 23:36:46 +02:00
input card_busy,
input rx_count,
input tx_count,
output cmd_index,
output cmd_arg,
input cmd_rsp,
output cmd_start,
output cmd_skip_response,
output cmd_reserved_response,
output cmd_long_response,
output cmd_ignore_crc,
input cmd_busy,
input cmd_error,
output dat_fifo_flush,
output dat_start_write,
output dat_start_read,
output dat_stop,
output dat_blocks,
input dat_busy,
input dat_error
2022-05-15 15:47:12 +02:00
);
modport clk (
input clock_mode,
input clock_stop
2022-05-15 15:47:12 +02:00
);
modport cmd (
2022-09-08 23:36:46 +02:00
input cmd_index,
input cmd_arg,
output cmd_rsp,
input cmd_start,
input cmd_skip_response,
input cmd_reserved_response,
input cmd_long_response,
input cmd_ignore_crc,
output cmd_busy,
output cmd_error
);
modport dat (
output clock_stop,
2022-09-08 23:36:46 +02:00
output card_busy,
output rx_count,
output tx_count,
input dat_fifo_flush,
input dat_start_write,
input dat_start_read,
input dat_stop,
input dat_blocks,
output dat_busy,
output dat_error
2022-05-15 15:47:12 +02:00
);
endinterface