Files
retroSoC/rtl/ip/serial/i2s_define.svh
T
maksyuki 6eedacd2f7 refactor: refactor tests to replace RIBP references with APB4 equivalents
- Updated test files to change instances of ribp_if to apb4_if in various test cases, ensuring consistency with the new APB4 interface.
- Modified assertions and checks in tests to reflect the new APB4 naming conventions, including changes in expected output and input files.
- Adjusted the test descriptions to accurately represent the APB4 functionality being tested, particularly in timer, UART, and GPIO tests.
- Ensured that all relevant paths and file names in the tests are updated to point to the new APB4 implementations, maintaining the integrity of the test suite.
2026-08-16 21:19:20 +08:00

32 lines
1.1 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.
`ifndef APB4_I2S_DEF_SV
`define APB4_I2S_DEF_SV
// verilog_format: off -- preserve reviewed column alignment
`define APB4_I2S_MODE 8'h00
`define APB4_I2S_FORMAT 8'h04
`define APB4_I2S_UPBOUND 8'h08
`define APB4_I2S_LOWBOUND 8'h0C
`define APB4_I2S_RECVEN 8'h10
`define APB4_I2S_TXDATA 8'h14
`define APB4_I2S_RXDATA 8'h18
`define APB4_I2S_STATUS 8'h1C
`define APB4_I2S_STREAM_CTRL 8'h20
// verilog_format: on
`define I2S_16b_48K 2'd0
`define I2S_16b_96K 2'd1
`define I2S_24b_48K 2'd2
`define I2S_24b_96K 2'd3
`endif