2021-04-09 12:22:34 +00:00
|
|
|
|
/*
|
2022-08-10 00:13:38 +00:00
|
|
|
|
Copyright 2022 Blue Liang, liangkangnan@163.com
|
2021-04-09 12:22:34 +00:00
|
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
2022-08-10 00:13:38 +00:00
|
|
|
|
`include "../../../rtl/core/defines.sv"
|
|
|
|
|
`include "../../../rtl/debug/jtag_def.sv"
|
2021-04-09 12:22:34 +00:00
|
|
|
|
|
|
|
|
|
// tinyriscv soc顶层模块
|
2021-07-09 07:18:09 +00:00
|
|
|
|
module tinyriscv_soc_top #(
|
2021-08-13 01:33:15 +00:00
|
|
|
|
parameter bit TRACE_ENABLE = 1'b0,
|
2021-09-10 01:57:39 +00:00
|
|
|
|
parameter int GPIO_NUM = 16,
|
|
|
|
|
parameter int I2C_NUM = 2,
|
|
|
|
|
parameter int UART_NUM = 3,
|
|
|
|
|
parameter int SPI_NUM = 1
|
2021-07-09 07:18:09 +00:00
|
|
|
|
)(
|
2022-08-10 00:13:38 +00:00
|
|
|
|
input wire clk_12m_i, // 时钟引脚
|
|
|
|
|
input wire rst_ext_i, // 复位引脚,高电平有效
|
2021-04-09 12:22:34 +00:00
|
|
|
|
|
2021-11-02 02:54:37 +00:00
|
|
|
|
output wire halted_ind_pin, // jtag是否已经halt住CPU,高电平有效
|
2021-04-09 12:22:34 +00:00
|
|
|
|
|
2021-11-02 02:54:37 +00:00
|
|
|
|
inout wire[GPIO_NUM-1:0] io_pins, // IO引脚,1bit代表一个IO
|
|
|
|
|
|
|
|
|
|
output wire flash_spi_clk_pin, // flash spi clk引脚
|
|
|
|
|
output wire flash_spi_ss_pin, // flash spi ss引脚
|
|
|
|
|
inout wire [3:0] flash_spi_dq_pin, // flash spi dq引脚
|
2021-04-09 12:22:34 +00:00
|
|
|
|
|
2021-11-02 02:54:37 +00:00
|
|
|
|
input wire jtag_TCK_pin, // JTAG TCK引脚
|
|
|
|
|
input wire jtag_TMS_pin, // JTAG TMS引脚
|
|
|
|
|
input wire jtag_TDI_pin, // JTAG TDI引脚
|
|
|
|
|
output wire jtag_TDO_pin // JTAG TDO引脚
|
2021-04-09 12:22:34 +00:00
|
|
|
|
);
|
|
|
|
|
|
2021-09-10 01:57:39 +00:00
|
|
|
|
localparam int MASTERS = 3; // Number of master ports
|
2023-04-01 07:18:17 +00:00
|
|
|
|
localparam int SLAVES = 17; // Number of slave ports
|
2021-04-09 12:22:34 +00:00
|
|
|
|
|
2021-04-25 09:14:09 +00:00
|
|
|
|
// masters
|
2021-06-05 11:59:07 +00:00
|
|
|
|
localparam int JtagHost = 0;
|
|
|
|
|
localparam int CoreD = 1;
|
2021-04-29 11:27:25 +00:00
|
|
|
|
localparam int CoreI = 2;
|
2021-04-09 12:22:34 +00:00
|
|
|
|
|
2021-04-25 09:14:09 +00:00
|
|
|
|
// slaves
|
|
|
|
|
localparam int Rom = 0;
|
|
|
|
|
localparam int Ram = 1;
|
|
|
|
|
localparam int JtagDevice = 2;
|
2021-08-10 01:47:37 +00:00
|
|
|
|
localparam int Timer0 = 3;
|
2021-05-14 13:00:57 +00:00
|
|
|
|
localparam int Gpio = 4;
|
2021-08-07 06:28:46 +00:00
|
|
|
|
localparam int Uart0 = 5;
|
2021-07-22 01:36:04 +00:00
|
|
|
|
localparam int Rvic = 6;
|
2021-08-19 09:45:45 +00:00
|
|
|
|
localparam int I2c0 = 7;
|
2021-09-06 02:01:56 +00:00
|
|
|
|
localparam int Spi0 = 8;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
localparam int Pinmux = 9;
|
|
|
|
|
localparam int Uart1 = 10;
|
|
|
|
|
localparam int Uart2 = 11;
|
|
|
|
|
localparam int I2c1 = 12;
|
|
|
|
|
localparam int Timer1 = 13;
|
|
|
|
|
localparam int Timer2 = 14;
|
2023-04-01 07:18:17 +00:00
|
|
|
|
localparam int Xip = 15;
|
|
|
|
|
localparam int Bootrom = 16;
|
2021-04-09 12:22:34 +00:00
|
|
|
|
|
|
|
|
|
wire master_req [MASTERS];
|
|
|
|
|
wire master_gnt [MASTERS];
|
|
|
|
|
wire master_rvalid [MASTERS];
|
|
|
|
|
wire [31:0] master_addr [MASTERS];
|
|
|
|
|
wire master_we [MASTERS];
|
|
|
|
|
wire [ 3:0] master_be [MASTERS];
|
|
|
|
|
wire [31:0] master_rdata [MASTERS];
|
|
|
|
|
wire [31:0] master_wdata [MASTERS];
|
|
|
|
|
|
|
|
|
|
wire slave_req [SLAVES];
|
|
|
|
|
wire slave_gnt [SLAVES];
|
|
|
|
|
wire slave_rvalid [SLAVES];
|
|
|
|
|
wire [31:0] slave_addr [SLAVES];
|
|
|
|
|
wire slave_we [SLAVES];
|
|
|
|
|
wire [ 3:0] slave_be [SLAVES];
|
|
|
|
|
wire [31:0] slave_rdata [SLAVES];
|
|
|
|
|
wire [31:0] slave_wdata [SLAVES];
|
|
|
|
|
|
|
|
|
|
wire [31:0] slave_addr_mask [SLAVES];
|
|
|
|
|
wire [31:0] slave_addr_base [SLAVES];
|
|
|
|
|
|
2021-05-20 03:05:39 +00:00
|
|
|
|
wire clk;
|
2022-08-10 00:13:38 +00:00
|
|
|
|
wire rst_ext_n;
|
2021-04-13 06:12:47 +00:00
|
|
|
|
wire ndmreset;
|
|
|
|
|
wire ndmreset_n;
|
2021-04-25 09:14:09 +00:00
|
|
|
|
wire debug_req;
|
2021-04-29 11:27:25 +00:00
|
|
|
|
wire core_halted;
|
2021-04-13 06:12:47 +00:00
|
|
|
|
|
2021-07-22 01:36:04 +00:00
|
|
|
|
reg[31:0] irq_src;
|
|
|
|
|
wire int_req;
|
|
|
|
|
wire[7:0] int_id;
|
|
|
|
|
|
2021-08-10 01:47:37 +00:00
|
|
|
|
wire timer0_irq;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
wire timer1_irq;
|
|
|
|
|
wire timer2_irq;
|
2021-08-07 06:28:46 +00:00
|
|
|
|
wire uart0_irq;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
wire uart1_irq;
|
|
|
|
|
wire uart2_irq;
|
2021-08-13 01:33:15 +00:00
|
|
|
|
wire gpio0_irq;
|
|
|
|
|
wire gpio1_irq;
|
2021-08-19 01:43:12 +00:00
|
|
|
|
wire i2c0_irq;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
wire i2c1_irq;
|
2021-09-06 02:01:56 +00:00
|
|
|
|
wire spi0_irq;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
wire gpio2_4_irq;
|
|
|
|
|
wire gpio5_7_irq;
|
|
|
|
|
wire gpio8_irq;
|
|
|
|
|
wire gpio9_irq;
|
|
|
|
|
wire gpio10_12_irq;
|
|
|
|
|
wire gpio13_15_irq;
|
2021-05-14 13:00:57 +00:00
|
|
|
|
|
2021-08-13 01:33:15 +00:00
|
|
|
|
wire[GPIO_NUM-1:0] gpio_data_in;
|
|
|
|
|
wire[GPIO_NUM-1:0] gpio_oe;
|
|
|
|
|
wire[GPIO_NUM-1:0] gpio_data_out;
|
2021-05-14 13:00:57 +00:00
|
|
|
|
|
2021-09-10 01:57:39 +00:00
|
|
|
|
wire[GPIO_NUM-1:0] io_data_in;
|
|
|
|
|
wire[GPIO_NUM-1:0] io_oe;
|
|
|
|
|
wire[GPIO_NUM-1:0] io_data_out;
|
|
|
|
|
|
|
|
|
|
wire[I2C_NUM-1:0] i2c_scl_in;
|
|
|
|
|
wire[I2C_NUM-1:0] i2c_scl_oe;
|
|
|
|
|
wire[I2C_NUM-1:0] i2c_scl_out;
|
|
|
|
|
wire[I2C_NUM-1:0] i2c_sda_in;
|
|
|
|
|
wire[I2C_NUM-1:0] i2c_sda_oe;
|
|
|
|
|
wire[I2C_NUM-1:0] i2c_sda_out;
|
|
|
|
|
|
|
|
|
|
wire[UART_NUM-1:0] uart_tx;
|
|
|
|
|
wire[UART_NUM-1:0] uart_rx;
|
|
|
|
|
|
|
|
|
|
wire[SPI_NUM-1:0] spi_clk_in;
|
|
|
|
|
wire[SPI_NUM-1:0] spi_clk_oe;
|
|
|
|
|
wire[SPI_NUM-1:0] spi_clk_out;
|
|
|
|
|
wire[SPI_NUM-1:0] spi_ss_in;
|
|
|
|
|
wire[SPI_NUM-1:0] spi_ss_oe;
|
|
|
|
|
wire[SPI_NUM-1:0] spi_ss_out;
|
|
|
|
|
wire[3:0] spi_dq_in[SPI_NUM-1:0];
|
|
|
|
|
wire[3:0] spi_dq_oe[SPI_NUM-1:0];
|
|
|
|
|
wire[3:0] spi_dq_out[SPI_NUM-1:0];
|
|
|
|
|
|
2021-11-02 02:54:37 +00:00
|
|
|
|
wire[31:0] core_instr_addr;
|
|
|
|
|
wire[31:0] core_data_addr;
|
|
|
|
|
|
|
|
|
|
wire[3:0] flash_spi_dq_in;
|
|
|
|
|
wire[3:0] flash_spi_dq_oe;
|
|
|
|
|
wire[3:0] flash_spi_dq_out;
|
|
|
|
|
|
2021-09-10 01:57:39 +00:00
|
|
|
|
// 中断源
|
2021-07-22 01:36:04 +00:00
|
|
|
|
always @ (*) begin
|
2021-09-10 01:57:39 +00:00
|
|
|
|
irq_src = 32'h0;
|
|
|
|
|
irq_src[ 0] = timer0_irq;
|
|
|
|
|
irq_src[ 1] = uart0_irq;
|
|
|
|
|
irq_src[ 2] = gpio0_irq;
|
|
|
|
|
irq_src[ 3] = gpio1_irq;
|
|
|
|
|
irq_src[ 4] = i2c0_irq;
|
|
|
|
|
irq_src[ 5] = spi0_irq;
|
|
|
|
|
irq_src[ 6] = gpio2_4_irq;
|
|
|
|
|
irq_src[ 7] = gpio5_7_irq;
|
|
|
|
|
irq_src[ 8] = gpio8_irq;
|
|
|
|
|
irq_src[ 9] = gpio9_irq;
|
|
|
|
|
irq_src[10] = gpio10_12_irq;
|
|
|
|
|
irq_src[11] = gpio13_15_irq;
|
|
|
|
|
irq_src[12] = uart1_irq;
|
|
|
|
|
irq_src[13] = uart2_irq;
|
|
|
|
|
irq_src[14] = i2c1_irq;
|
|
|
|
|
irq_src[15] = timer1_irq;
|
|
|
|
|
irq_src[16] = timer2_irq;
|
2021-07-22 01:36:04 +00:00
|
|
|
|
end
|
|
|
|
|
|
2022-08-10 00:13:38 +00:00
|
|
|
|
assign rst_ext_n = ~rst_ext_i;
|
2021-04-29 11:27:25 +00:00
|
|
|
|
assign halted_ind_pin = core_halted;
|
2021-04-09 12:22:34 +00:00
|
|
|
|
|
2023-04-01 07:18:17 +00:00
|
|
|
|
assign master_we[CoreI] = '0;
|
|
|
|
|
assign master_be[CoreI] = '0;
|
2021-04-13 03:10:06 +00:00
|
|
|
|
tinyriscv_core #(
|
2021-04-25 09:14:09 +00:00
|
|
|
|
.DEBUG_HALT_ADDR(`DEBUG_ADDR_BASE + `HaltAddress),
|
2021-07-09 07:18:09 +00:00
|
|
|
|
.DEBUG_EXCEPTION_ADDR(`DEBUG_ADDR_BASE + `ExceptionAddress),
|
|
|
|
|
.BranchPredictor(1'b1),
|
|
|
|
|
.TRACE_ENABLE(TRACE_ENABLE)
|
2021-04-13 03:10:06 +00:00
|
|
|
|
) u_tinyriscv_core (
|
2021-04-29 11:27:25 +00:00
|
|
|
|
.clk (clk),
|
|
|
|
|
.rst_n (ndmreset_n),
|
|
|
|
|
|
|
|
|
|
.instr_req_o (master_req[CoreI]),
|
|
|
|
|
.instr_gnt_i (master_gnt[CoreI]),
|
|
|
|
|
.instr_rvalid_i (master_rvalid[CoreI]),
|
2023-04-01 07:18:17 +00:00
|
|
|
|
.instr_addr_o (master_addr[CoreI]),
|
2021-04-29 11:27:25 +00:00
|
|
|
|
.instr_rdata_i (master_rdata[CoreI]),
|
|
|
|
|
.instr_err_i (1'b0),
|
|
|
|
|
|
|
|
|
|
.data_req_o (master_req[CoreD]),
|
|
|
|
|
.data_gnt_i (master_gnt[CoreD]),
|
|
|
|
|
.data_rvalid_i (master_rvalid[CoreD]),
|
|
|
|
|
.data_we_o (master_we[CoreD]),
|
|
|
|
|
.data_be_o (master_be[CoreD]),
|
2023-04-01 07:18:17 +00:00
|
|
|
|
.data_addr_o (master_addr[CoreD]),
|
2021-04-29 11:27:25 +00:00
|
|
|
|
.data_wdata_o (master_wdata[CoreD]),
|
|
|
|
|
.data_rdata_i (master_rdata[CoreD]),
|
|
|
|
|
.data_err_i (1'b0),
|
|
|
|
|
|
2021-07-22 01:36:04 +00:00
|
|
|
|
.int_req_i (int_req),
|
|
|
|
|
.int_id_i (int_id),
|
2021-04-29 11:27:25 +00:00
|
|
|
|
|
|
|
|
|
.debug_req_i (debug_req)
|
2021-04-09 12:22:34 +00:00
|
|
|
|
);
|
|
|
|
|
|
2021-04-12 11:18:35 +00:00
|
|
|
|
assign slave_addr_mask[Rom] = `ROM_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Rom] = `ROM_ADDR_BASE;
|
2021-05-14 13:00:57 +00:00
|
|
|
|
// 1.指令存储器
|
2021-04-09 12:22:34 +00:00
|
|
|
|
rom #(
|
|
|
|
|
.DP(`ROM_DEPTH)
|
2021-04-29 11:27:25 +00:00
|
|
|
|
) u_rom (
|
2021-09-01 01:54:32 +00:00
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.req_i (slave_req[Rom]),
|
|
|
|
|
.addr_i (slave_addr[Rom]),
|
|
|
|
|
.data_i (slave_wdata[Rom]),
|
|
|
|
|
.be_i (slave_be[Rom]),
|
|
|
|
|
.we_i (slave_we[Rom]),
|
|
|
|
|
.gnt_o (slave_gnt[Rom]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Rom]),
|
|
|
|
|
.data_o (slave_rdata[Rom])
|
2021-04-09 12:22:34 +00:00
|
|
|
|
);
|
|
|
|
|
|
2021-04-12 11:18:35 +00:00
|
|
|
|
assign slave_addr_mask[Ram] = `RAM_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Ram] = `RAM_ADDR_BASE;
|
2021-05-14 13:00:57 +00:00
|
|
|
|
// 2.数据存储器
|
2021-04-09 12:22:34 +00:00
|
|
|
|
ram #(
|
|
|
|
|
.DP(`RAM_DEPTH)
|
2021-04-29 11:27:25 +00:00
|
|
|
|
) u_ram (
|
2021-09-01 01:54:32 +00:00
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.req_i (slave_req[Ram]),
|
|
|
|
|
.addr_i (slave_addr[Ram]),
|
|
|
|
|
.data_i (slave_wdata[Ram]),
|
|
|
|
|
.be_i (slave_be[Ram]),
|
|
|
|
|
.we_i (slave_we[Ram]),
|
|
|
|
|
.gnt_o (slave_gnt[Ram]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Ram]),
|
|
|
|
|
.data_o (slave_rdata[Ram])
|
2021-04-09 12:22:34 +00:00
|
|
|
|
);
|
|
|
|
|
|
2021-08-10 01:47:37 +00:00
|
|
|
|
assign slave_addr_mask[Timer0] = `TIMER0_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Timer0] = `TIMER0_ADDR_BASE;
|
|
|
|
|
// 3.定时器0模块
|
|
|
|
|
timer_top timer0(
|
2021-09-01 01:54:32 +00:00
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.irq_o (timer0_irq),
|
|
|
|
|
.req_i (slave_req[Timer0]),
|
|
|
|
|
.we_i (slave_we[Timer0]),
|
|
|
|
|
.be_i (slave_be[Timer0]),
|
|
|
|
|
.addr_i (slave_addr[Timer0]),
|
|
|
|
|
.data_i (slave_wdata[Timer0]),
|
|
|
|
|
.gnt_o (slave_gnt[Timer0]),
|
|
|
|
|
.rvalid_o(slave_rvalid[Timer0]),
|
|
|
|
|
.data_o (slave_rdata[Timer0])
|
2021-05-14 13:00:57 +00:00
|
|
|
|
);
|
|
|
|
|
|
2021-09-10 01:57:39 +00:00
|
|
|
|
assign slave_addr_mask[Timer1] = `TIMER1_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Timer1] = `TIMER1_ADDR_BASE;
|
|
|
|
|
// 4.定时器1模块
|
|
|
|
|
timer_top timer1(
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.irq_o (timer1_irq),
|
|
|
|
|
.req_i (slave_req[Timer1]),
|
|
|
|
|
.we_i (slave_we[Timer1]),
|
|
|
|
|
.be_i (slave_be[Timer1]),
|
|
|
|
|
.addr_i (slave_addr[Timer1]),
|
|
|
|
|
.data_i (slave_wdata[Timer1]),
|
|
|
|
|
.gnt_o (slave_gnt[Timer1]),
|
|
|
|
|
.rvalid_o(slave_rvalid[Timer1]),
|
|
|
|
|
.data_o (slave_rdata[Timer1])
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
assign slave_addr_mask[Timer2] = `TIMER2_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Timer2] = `TIMER2_ADDR_BASE;
|
|
|
|
|
// 5.定时器2模块
|
|
|
|
|
timer_top timer2(
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.irq_o (timer2_irq),
|
|
|
|
|
.req_i (slave_req[Timer2]),
|
|
|
|
|
.we_i (slave_we[Timer2]),
|
|
|
|
|
.be_i (slave_be[Timer2]),
|
|
|
|
|
.addr_i (slave_addr[Timer2]),
|
|
|
|
|
.data_i (slave_wdata[Timer2]),
|
|
|
|
|
.gnt_o (slave_gnt[Timer2]),
|
|
|
|
|
.rvalid_o(slave_rvalid[Timer2]),
|
|
|
|
|
.data_o (slave_rdata[Timer2])
|
|
|
|
|
);
|
2021-05-14 13:00:57 +00:00
|
|
|
|
|
|
|
|
|
assign slave_addr_mask[Gpio] = `GPIO_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Gpio] = `GPIO_ADDR_BASE;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
// 6.GPIO模块
|
2021-08-13 01:33:15 +00:00
|
|
|
|
gpio_top #(
|
|
|
|
|
.GPIO_NUM(GPIO_NUM)
|
|
|
|
|
) u_gpio (
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.gpio_oe_o (gpio_oe),
|
|
|
|
|
.gpio_data_o (gpio_data_out),
|
|
|
|
|
.gpio_data_i (gpio_data_in),
|
|
|
|
|
.irq_gpio0_o (gpio0_irq),
|
|
|
|
|
.irq_gpio1_o (gpio1_irq),
|
2021-09-10 01:57:39 +00:00
|
|
|
|
.irq_gpio2_4_o (gpio2_4_irq),
|
|
|
|
|
.irq_gpio5_7_o (gpio5_7_irq),
|
|
|
|
|
.irq_gpio8_o (gpio8_irq),
|
|
|
|
|
.irq_gpio9_o (gpio9_irq),
|
|
|
|
|
.irq_gpio10_12_o(gpio10_12_irq),
|
|
|
|
|
.irq_gpio13_15_o(gpio13_15_irq),
|
2021-08-13 01:33:15 +00:00
|
|
|
|
.req_i (slave_req[Gpio]),
|
|
|
|
|
.we_i (slave_we[Gpio]),
|
|
|
|
|
.be_i (slave_be[Gpio]),
|
|
|
|
|
.addr_i (slave_addr[Gpio]),
|
|
|
|
|
.data_i (slave_wdata[Gpio]),
|
2021-09-01 01:54:32 +00:00
|
|
|
|
.gnt_o (slave_gnt[Gpio]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Gpio]),
|
2021-08-13 01:33:15 +00:00
|
|
|
|
.data_o (slave_rdata[Gpio])
|
2021-05-14 13:00:57 +00:00
|
|
|
|
);
|
|
|
|
|
|
2021-08-07 06:28:46 +00:00
|
|
|
|
assign slave_addr_mask[Uart0] = `UART0_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Uart0] = `UART0_ADDR_BASE;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
// 7.串口0模块
|
2021-08-07 06:28:46 +00:00
|
|
|
|
uart_top uart0 (
|
2021-09-01 01:54:32 +00:00
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
2021-09-10 01:57:39 +00:00
|
|
|
|
.rx_i (uart_rx[0]),
|
|
|
|
|
.tx_o (uart_tx[0]),
|
2021-09-01 01:54:32 +00:00
|
|
|
|
.irq_o (uart0_irq),
|
|
|
|
|
.req_i (slave_req[Uart0]),
|
|
|
|
|
.we_i (slave_we[Uart0]),
|
|
|
|
|
.be_i (slave_be[Uart0]),
|
|
|
|
|
.addr_i (slave_addr[Uart0]),
|
|
|
|
|
.data_i (slave_wdata[Uart0]),
|
|
|
|
|
.gnt_o (slave_gnt[Uart0]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Uart0]),
|
|
|
|
|
.data_o (slave_rdata[Uart0])
|
2021-05-14 13:00:57 +00:00
|
|
|
|
);
|
|
|
|
|
|
2021-09-10 01:57:39 +00:00
|
|
|
|
assign slave_addr_mask[Uart1] = `UART1_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Uart1] = `UART1_ADDR_BASE;
|
|
|
|
|
// 8.串口1模块
|
|
|
|
|
uart_top uart1 (
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.rx_i (uart_rx[1]),
|
|
|
|
|
.tx_o (uart_tx[1]),
|
|
|
|
|
.irq_o (uart1_irq),
|
|
|
|
|
.req_i (slave_req[Uart1]),
|
|
|
|
|
.we_i (slave_we[Uart1]),
|
|
|
|
|
.be_i (slave_be[Uart1]),
|
|
|
|
|
.addr_i (slave_addr[Uart1]),
|
|
|
|
|
.data_i (slave_wdata[Uart1]),
|
|
|
|
|
.gnt_o (slave_gnt[Uart1]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Uart1]),
|
|
|
|
|
.data_o (slave_rdata[Uart1])
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
assign slave_addr_mask[Uart2] = `UART2_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Uart2] = `UART2_ADDR_BASE;
|
|
|
|
|
// 9.串口2模块
|
|
|
|
|
uart_top uart2 (
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.rx_i (uart_rx[2]),
|
|
|
|
|
.tx_o (uart_tx[2]),
|
|
|
|
|
.irq_o (uart2_irq),
|
|
|
|
|
.req_i (slave_req[Uart2]),
|
|
|
|
|
.we_i (slave_we[Uart2]),
|
|
|
|
|
.be_i (slave_be[Uart2]),
|
|
|
|
|
.addr_i (slave_addr[Uart2]),
|
|
|
|
|
.data_i (slave_wdata[Uart2]),
|
|
|
|
|
.gnt_o (slave_gnt[Uart2]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Uart2]),
|
|
|
|
|
.data_o (slave_rdata[Uart2])
|
|
|
|
|
);
|
|
|
|
|
|
2021-07-22 01:36:04 +00:00
|
|
|
|
assign slave_addr_mask[Rvic] = `RVIC_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Rvic] = `RVIC_ADDR_BASE;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
// 10.中断控制器模块
|
2021-08-14 06:03:47 +00:00
|
|
|
|
rvic_top u_rvic(
|
2021-07-22 01:36:04 +00:00
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.src_i (irq_src),
|
|
|
|
|
.irq_o (int_req),
|
|
|
|
|
.irq_id_o (int_id),
|
2021-08-14 06:03:47 +00:00
|
|
|
|
.req_i (slave_req[Rvic]),
|
|
|
|
|
.we_i (slave_we[Rvic]),
|
|
|
|
|
.be_i (slave_be[Rvic]),
|
2021-07-22 01:36:04 +00:00
|
|
|
|
.addr_i (slave_addr[Rvic]),
|
|
|
|
|
.data_i (slave_wdata[Rvic]),
|
2021-09-01 01:54:32 +00:00
|
|
|
|
.gnt_o (slave_gnt[Rvic]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Rvic]),
|
2021-07-22 01:36:04 +00:00
|
|
|
|
.data_o (slave_rdata[Rvic])
|
|
|
|
|
);
|
|
|
|
|
|
2021-08-19 09:45:45 +00:00
|
|
|
|
assign slave_addr_mask[I2c0] = `I2C0_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[I2c0] = `I2C0_ADDR_BASE;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
// 11.I2C0模块
|
2021-08-19 01:43:12 +00:00
|
|
|
|
i2c_top i2c0(
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
2021-09-10 01:57:39 +00:00
|
|
|
|
.scl_o (i2c_scl_out[0]),
|
|
|
|
|
.scl_oe_o (i2c_scl_oe[0]),
|
|
|
|
|
.scl_i (i2c_scl_in[0]),
|
|
|
|
|
.sda_o (i2c_sda_out[0]),
|
|
|
|
|
.sda_oe_o (i2c_sda_oe[0]),
|
|
|
|
|
.sda_i (i2c_sda_in[0]),
|
2021-08-19 01:43:12 +00:00
|
|
|
|
.irq_o (i2c0_irq),
|
2021-08-19 09:45:45 +00:00
|
|
|
|
.req_i (slave_req[I2c0]),
|
|
|
|
|
.we_i (slave_we[I2c0]),
|
|
|
|
|
.be_i (slave_be[I2c0]),
|
|
|
|
|
.addr_i (slave_addr[I2c0]),
|
|
|
|
|
.data_i (slave_wdata[I2c0]),
|
2021-09-01 01:54:32 +00:00
|
|
|
|
.gnt_o (slave_gnt[I2c0]),
|
|
|
|
|
.rvalid_o (slave_rvalid[I2c0]),
|
2021-08-19 09:45:45 +00:00
|
|
|
|
.data_o (slave_rdata[I2c0])
|
2021-08-19 01:43:12 +00:00
|
|
|
|
);
|
|
|
|
|
|
2021-09-10 01:57:39 +00:00
|
|
|
|
assign slave_addr_mask[I2c1] = `I2C1_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[I2c1] = `I2C1_ADDR_BASE;
|
2021-11-02 02:54:37 +00:00
|
|
|
|
// 12.I2C1模块
|
2021-09-10 01:57:39 +00:00
|
|
|
|
i2c_top i2c1(
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.scl_o (i2c_scl_out[1]),
|
|
|
|
|
.scl_oe_o (i2c_scl_oe[1]),
|
|
|
|
|
.scl_i (i2c_scl_in[1]),
|
|
|
|
|
.sda_o (i2c_sda_out[1]),
|
|
|
|
|
.sda_oe_o (i2c_sda_oe[1]),
|
|
|
|
|
.sda_i (i2c_sda_in[1]),
|
|
|
|
|
.irq_o (i2c1_irq),
|
|
|
|
|
.req_i (slave_req[I2c1]),
|
|
|
|
|
.we_i (slave_we[I2c1]),
|
|
|
|
|
.be_i (slave_be[I2c1]),
|
|
|
|
|
.addr_i (slave_addr[I2c1]),
|
|
|
|
|
.data_i (slave_wdata[I2c1]),
|
|
|
|
|
.gnt_o (slave_gnt[I2c1]),
|
|
|
|
|
.rvalid_o (slave_rvalid[I2c1]),
|
|
|
|
|
.data_o (slave_rdata[I2c1])
|
|
|
|
|
);
|
2021-09-06 02:01:56 +00:00
|
|
|
|
|
|
|
|
|
assign slave_addr_mask[Spi0] = `SPI0_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Spi0] = `SPI0_ADDR_BASE;
|
2021-09-10 01:57:39 +00:00
|
|
|
|
// 13.SPI0模块
|
2021-09-06 02:01:56 +00:00
|
|
|
|
spi_top spi0(
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
2021-09-10 01:57:39 +00:00
|
|
|
|
.spi_clk_i (spi_clk_in[0]),
|
|
|
|
|
.spi_clk_o (spi_clk_out[0]),
|
|
|
|
|
.spi_clk_oe_o(spi_clk_oe[0]),
|
|
|
|
|
.spi_ss_i (spi_ss_in[0]),
|
|
|
|
|
.spi_ss_o (spi_ss_out[0]),
|
|
|
|
|
.spi_ss_oe_o(spi_ss_oe[0]),
|
|
|
|
|
.spi_dq0_i (spi_dq_in[0][0]),
|
|
|
|
|
.spi_dq0_o (spi_dq_out[0][0]),
|
|
|
|
|
.spi_dq0_oe_o(spi_dq_oe[0][0]),
|
|
|
|
|
.spi_dq1_i (spi_dq_in[0][1]),
|
|
|
|
|
.spi_dq1_o (spi_dq_out[0][1]),
|
|
|
|
|
.spi_dq1_oe_o(spi_dq_oe[0][1]),
|
|
|
|
|
.spi_dq2_i (spi_dq_in[0][2]),
|
|
|
|
|
.spi_dq2_o (spi_dq_out[0][2]),
|
|
|
|
|
.spi_dq2_oe_o(spi_dq_oe[0][2]),
|
|
|
|
|
.spi_dq3_i (spi_dq_in[0][3]),
|
|
|
|
|
.spi_dq3_o (spi_dq_out[0][3]),
|
|
|
|
|
.spi_dq3_oe_o(spi_dq_oe[0][3]),
|
2021-09-06 02:01:56 +00:00
|
|
|
|
.irq_o (spi0_irq),
|
|
|
|
|
.req_i (slave_req[Spi0]),
|
|
|
|
|
.we_i (slave_we[Spi0]),
|
|
|
|
|
.be_i (slave_be[Spi0]),
|
|
|
|
|
.addr_i (slave_addr[Spi0]),
|
|
|
|
|
.data_i (slave_wdata[Spi0]),
|
|
|
|
|
.gnt_o (slave_gnt[Spi0]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Spi0]),
|
|
|
|
|
.data_o (slave_rdata[Spi0])
|
|
|
|
|
);
|
|
|
|
|
|
2021-09-10 01:57:39 +00:00
|
|
|
|
for (genvar i = 0; i < GPIO_NUM; i = i + 1) begin : g_io_data
|
|
|
|
|
assign io_pins[i] = io_oe[i] ? io_data_out[i] : 1'bz;
|
|
|
|
|
assign io_data_in[i] = io_pins[i];
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
assign slave_addr_mask[Pinmux] = `PINMUX_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Pinmux] = `PINMUX_ADDR_BASE;
|
|
|
|
|
// 14.PINMUX模块
|
|
|
|
|
pinmux_top #(
|
|
|
|
|
.GPIO_NUM(GPIO_NUM),
|
|
|
|
|
.I2C_NUM(I2C_NUM),
|
|
|
|
|
.UART_NUM(UART_NUM),
|
|
|
|
|
.SPI_NUM(SPI_NUM)
|
|
|
|
|
) u_pinmux (
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.gpio_oe_i (gpio_oe),
|
|
|
|
|
.gpio_val_i (gpio_data_out),
|
|
|
|
|
.gpio_val_o (gpio_data_in),
|
|
|
|
|
.i2c_sda_oe_i (i2c_sda_oe),
|
|
|
|
|
.i2c_sda_val_i (i2c_sda_out),
|
|
|
|
|
.i2c_sda_val_o (i2c_sda_in),
|
|
|
|
|
.i2c_scl_oe_i (i2c_scl_oe),
|
|
|
|
|
.i2c_scl_val_i (i2c_scl_out),
|
|
|
|
|
.i2c_scl_val_o (i2c_scl_in),
|
|
|
|
|
.uart_tx_oe_i ({UART_NUM{1'b1}}),
|
|
|
|
|
.uart_tx_val_i (uart_tx),
|
|
|
|
|
.uart_tx_val_o (),
|
|
|
|
|
.uart_rx_oe_i ({UART_NUM{1'b0}}),
|
|
|
|
|
.uart_rx_val_i (),
|
|
|
|
|
.uart_rx_val_o (uart_rx),
|
|
|
|
|
.spi_clk_oe_i (spi_clk_oe),
|
|
|
|
|
.spi_clk_val_i (spi_clk_out),
|
|
|
|
|
.spi_clk_val_o (spi_clk_in),
|
|
|
|
|
.spi_ss_oe_i (spi_ss_oe),
|
|
|
|
|
.spi_ss_val_i (spi_ss_out),
|
|
|
|
|
.spi_ss_val_o (spi_ss_in),
|
|
|
|
|
.spi_dq_oe_i (spi_dq_oe),
|
|
|
|
|
.spi_dq_val_i (spi_dq_out),
|
|
|
|
|
.spi_dq_val_o (spi_dq_in),
|
|
|
|
|
.io_val_i (io_data_in),
|
|
|
|
|
.io_val_o (io_data_out),
|
|
|
|
|
.io_oe_o (io_oe),
|
|
|
|
|
.req_i (slave_req[Pinmux]),
|
|
|
|
|
.we_i (slave_we[Pinmux]),
|
|
|
|
|
.be_i (slave_be[Pinmux]),
|
|
|
|
|
.addr_i (slave_addr[Pinmux]),
|
|
|
|
|
.data_i (slave_wdata[Pinmux]),
|
|
|
|
|
.gnt_o (slave_gnt[Pinmux]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Pinmux]),
|
|
|
|
|
.data_o (slave_rdata[Pinmux])
|
|
|
|
|
);
|
|
|
|
|
|
2021-11-02 02:54:37 +00:00
|
|
|
|
for (genvar j = 0; j < 4; j = j + 1) begin : g_spi_pin_data
|
|
|
|
|
assign flash_spi_dq_pin[j] = flash_spi_dq_oe[j] ? flash_spi_dq_out[j] : 1'bz;
|
|
|
|
|
assign flash_spi_dq_in[j] = flash_spi_dq_pin[j];
|
|
|
|
|
end
|
|
|
|
|
|
2023-04-01 07:18:17 +00:00
|
|
|
|
assign slave_addr_mask[Xip] = `XIP_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Xip] = `XIP_ADDR_BASE;
|
|
|
|
|
// 15.xip模块
|
|
|
|
|
xip_top xip (
|
2021-11-02 02:54:37 +00:00
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.spi_clk_o (flash_spi_clk_pin),
|
|
|
|
|
.spi_clk_oe_o (),
|
|
|
|
|
.spi_ss_o (flash_spi_ss_pin),
|
|
|
|
|
.spi_ss_oe_o (),
|
|
|
|
|
.spi_dq0_i (flash_spi_dq_in[0]),
|
|
|
|
|
.spi_dq0_o (flash_spi_dq_out[0]),
|
|
|
|
|
.spi_dq0_oe_o (flash_spi_dq_oe[0]),
|
|
|
|
|
.spi_dq1_i (flash_spi_dq_in[1]),
|
|
|
|
|
.spi_dq1_o (flash_spi_dq_out[1]),
|
|
|
|
|
.spi_dq1_oe_o (flash_spi_dq_oe[1]),
|
|
|
|
|
.spi_dq2_i (flash_spi_dq_in[2]),
|
|
|
|
|
.spi_dq2_o (flash_spi_dq_out[2]),
|
|
|
|
|
.spi_dq2_oe_o (flash_spi_dq_oe[2]),
|
|
|
|
|
.spi_dq3_i (flash_spi_dq_in[3]),
|
|
|
|
|
.spi_dq3_o (flash_spi_dq_out[3]),
|
|
|
|
|
.spi_dq3_oe_o (flash_spi_dq_oe[3]),
|
2023-04-01 07:18:17 +00:00
|
|
|
|
.req_i (slave_req[Xip]),
|
|
|
|
|
.we_i (slave_we[Xip]),
|
|
|
|
|
.be_i (slave_be[Xip]),
|
|
|
|
|
.addr_i (slave_addr[Xip]),
|
|
|
|
|
.data_i (slave_wdata[Xip]),
|
|
|
|
|
.gnt_o (slave_gnt[Xip]),
|
|
|
|
|
.rvalid_o (slave_rvalid[Xip]),
|
|
|
|
|
.data_o (slave_rdata[Xip])
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
assign slave_addr_mask[Bootrom] = `BOOTROM_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[Bootrom] = `BOOTROM_ADDR_BASE;
|
|
|
|
|
// 16.bootrom模块
|
|
|
|
|
bootrom_top bootrom(
|
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.req_i (slave_req[Bootrom]),
|
|
|
|
|
.we_i (slave_we[Bootrom]),
|
|
|
|
|
.be_i (slave_be[Bootrom]),
|
|
|
|
|
.addr_i (slave_addr[Bootrom]),
|
|
|
|
|
.data_i (slave_wdata[Bootrom]),
|
|
|
|
|
.gnt_o (slave_gnt[Bootrom]),
|
|
|
|
|
.rvalid_o(slave_rvalid[Bootrom]),
|
|
|
|
|
.data_o (slave_rdata[Bootrom])
|
2021-11-02 02:54:37 +00:00
|
|
|
|
);
|
|
|
|
|
|
2022-08-06 06:32:56 +00:00
|
|
|
|
// 内部总线
|
2021-04-09 12:22:34 +00:00
|
|
|
|
obi_interconnect #(
|
|
|
|
|
.MASTERS(MASTERS),
|
|
|
|
|
.SLAVES(SLAVES)
|
|
|
|
|
) bus (
|
2021-04-29 11:27:25 +00:00
|
|
|
|
.clk_i (clk),
|
|
|
|
|
.rst_ni (ndmreset_n),
|
|
|
|
|
.master_req_i (master_req),
|
|
|
|
|
.master_gnt_o (master_gnt),
|
|
|
|
|
.master_rvalid_o (master_rvalid),
|
|
|
|
|
.master_we_i (master_we),
|
|
|
|
|
.master_be_i (master_be),
|
|
|
|
|
.master_addr_i (master_addr),
|
|
|
|
|
.master_wdata_i (master_wdata),
|
|
|
|
|
.master_rdata_o (master_rdata),
|
|
|
|
|
.slave_addr_mask_i (slave_addr_mask),
|
|
|
|
|
.slave_addr_base_i (slave_addr_base),
|
|
|
|
|
.slave_req_o (slave_req),
|
|
|
|
|
.slave_gnt_i (slave_gnt),
|
|
|
|
|
.slave_rvalid_i (slave_rvalid),
|
|
|
|
|
.slave_we_o (slave_we),
|
|
|
|
|
.slave_be_o (slave_be),
|
|
|
|
|
.slave_addr_o (slave_addr),
|
|
|
|
|
.slave_wdata_o (slave_wdata),
|
|
|
|
|
.slave_rdata_i (slave_rdata)
|
2021-04-09 12:22:34 +00:00
|
|
|
|
);
|
|
|
|
|
|
2022-08-10 00:13:38 +00:00
|
|
|
|
assign clk = clk_12m_i;
|
2021-05-20 03:05:39 +00:00
|
|
|
|
|
2022-08-06 06:32:56 +00:00
|
|
|
|
// 复位信号产生
|
2021-04-13 06:12:47 +00:00
|
|
|
|
rst_gen #(
|
|
|
|
|
.RESET_FIFO_DEPTH(5)
|
|
|
|
|
) u_rst (
|
2021-04-29 11:27:25 +00:00
|
|
|
|
.clk (clk),
|
2022-08-10 00:13:38 +00:00
|
|
|
|
.rst_ni (rst_ext_n & (~ndmreset)),
|
2021-04-29 11:27:25 +00:00
|
|
|
|
.rst_no (ndmreset_n)
|
2021-04-13 06:12:47 +00:00
|
|
|
|
);
|
|
|
|
|
|
2021-04-25 09:14:09 +00:00
|
|
|
|
assign slave_addr_mask[JtagDevice] = `DEBUG_ADDR_MASK;
|
|
|
|
|
assign slave_addr_base[JtagDevice] = `DEBUG_ADDR_BASE;
|
2022-08-06 06:32:56 +00:00
|
|
|
|
// JTAG模块
|
2021-04-25 09:14:09 +00:00
|
|
|
|
jtag_top #(
|
|
|
|
|
|
2021-09-10 01:57:39 +00:00
|
|
|
|
) u_jtag (
|
2021-04-25 09:14:09 +00:00
|
|
|
|
.clk_i (clk),
|
2022-08-10 00:13:38 +00:00
|
|
|
|
.rst_ni (rst_ext_n),
|
2021-04-25 09:14:09 +00:00
|
|
|
|
.debug_req_o (debug_req),
|
|
|
|
|
.ndmreset_o (ndmreset),
|
2021-04-29 11:27:25 +00:00
|
|
|
|
.halted_o (core_halted),
|
2021-05-02 06:51:12 +00:00
|
|
|
|
.jtag_tck_i (jtag_TCK_pin),
|
|
|
|
|
.jtag_tdi_i (jtag_TDI_pin),
|
|
|
|
|
.jtag_tms_i (jtag_TMS_pin),
|
2022-08-10 00:13:38 +00:00
|
|
|
|
.jtag_trst_ni (rst_ext_n),
|
2021-05-02 06:51:12 +00:00
|
|
|
|
.jtag_tdo_o (jtag_TDO_pin),
|
2021-04-25 09:14:09 +00:00
|
|
|
|
.master_req_o (master_req[JtagHost]),
|
|
|
|
|
.master_gnt_i (master_gnt[JtagHost]),
|
|
|
|
|
.master_rvalid_i (master_rvalid[JtagHost]),
|
|
|
|
|
.master_we_o (master_we[JtagHost]),
|
|
|
|
|
.master_be_o (master_be[JtagHost]),
|
|
|
|
|
.master_addr_o (master_addr[JtagHost]),
|
|
|
|
|
.master_wdata_o (master_wdata[JtagHost]),
|
|
|
|
|
.master_rdata_i (master_rdata[JtagHost]),
|
|
|
|
|
.master_err_i (1'b0),
|
|
|
|
|
.slave_req_i (slave_req[JtagDevice]),
|
|
|
|
|
.slave_we_i (slave_we[JtagDevice]),
|
|
|
|
|
.slave_addr_i (slave_addr[JtagDevice]),
|
|
|
|
|
.slave_be_i (slave_be[JtagDevice]),
|
|
|
|
|
.slave_wdata_i (slave_wdata[JtagDevice]),
|
2021-09-01 01:54:32 +00:00
|
|
|
|
.slave_gnt_o (slave_gnt[JtagDevice]),
|
|
|
|
|
.slave_rvalid_o (slave_rvalid[JtagDevice]),
|
2021-04-25 09:14:09 +00:00
|
|
|
|
.slave_rdata_o (slave_rdata[JtagDevice])
|
|
|
|
|
);
|
2021-04-13 08:34:00 +00:00
|
|
|
|
|
2021-04-09 12:22:34 +00:00
|
|
|
|
endmodule
|