rtl: remove unused signals

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/1/head
liangkangnan 2020-08-29 22:35:43 +08:00
parent 3cd30247d2
commit 0ed81ff1a8
8 changed files with 10 additions and 158 deletions

View File

@ -27,7 +27,6 @@ module rib(
input wire[`MemAddrBus] m0_addr_i, // 0 input wire[`MemAddrBus] m0_addr_i, // 0
input wire[`MemBus] m0_data_i, // 0 input wire[`MemBus] m0_data_i, // 0
output reg[`MemBus] m0_data_o, // 0 output reg[`MemBus] m0_data_o, // 0
output reg m0_ack_o, // 0访
input wire m0_req_i, // 0访 input wire m0_req_i, // 0访
input wire m0_we_i, // 0 input wire m0_we_i, // 0
@ -35,7 +34,6 @@ module rib(
input wire[`MemAddrBus] m1_addr_i, // 1 input wire[`MemAddrBus] m1_addr_i, // 1
input wire[`MemBus] m1_data_i, // 1 input wire[`MemBus] m1_data_i, // 1
output reg[`MemBus] m1_data_o, // 1 output reg[`MemBus] m1_data_o, // 1
output reg m1_ack_o, // 1访
input wire m1_req_i, // 1访 input wire m1_req_i, // 1访
input wire m1_we_i, // 1 input wire m1_we_i, // 1
@ -43,7 +41,6 @@ module rib(
input wire[`MemAddrBus] m2_addr_i, // 2 input wire[`MemAddrBus] m2_addr_i, // 2
input wire[`MemBus] m2_data_i, // 2 input wire[`MemBus] m2_data_i, // 2
output reg[`MemBus] m2_data_o, // 2 output reg[`MemBus] m2_data_o, // 2
output reg m2_ack_o, // 2访
input wire m2_req_i, // 2访 input wire m2_req_i, // 2访
input wire m2_we_i, // 2 input wire m2_we_i, // 2
@ -51,7 +48,6 @@ module rib(
input wire[`MemAddrBus] m3_addr_i, // 3 input wire[`MemAddrBus] m3_addr_i, // 3
input wire[`MemBus] m3_data_i, // 3 input wire[`MemBus] m3_data_i, // 3
output reg[`MemBus] m3_data_o, // 3 output reg[`MemBus] m3_data_o, // 3
output reg m3_ack_o, // 3访
input wire m3_req_i, // 3访 input wire m3_req_i, // 3访
input wire m3_we_i, // 3 input wire m3_we_i, // 3
@ -59,48 +55,36 @@ module rib(
output reg[`MemAddrBus] s0_addr_o, // 0 output reg[`MemAddrBus] s0_addr_o, // 0
output reg[`MemBus] s0_data_o, // 0 output reg[`MemBus] s0_data_o, // 0
input wire[`MemBus] s0_data_i, // 0 input wire[`MemBus] s0_data_i, // 0
input wire s0_ack_i, // 0访
output reg s0_req_o, // 0访
output reg s0_we_o, // 0 output reg s0_we_o, // 0
// slave 1 interface // slave 1 interface
output reg[`MemAddrBus] s1_addr_o, // 1 output reg[`MemAddrBus] s1_addr_o, // 1
output reg[`MemBus] s1_data_o, // 1 output reg[`MemBus] s1_data_o, // 1
input wire[`MemBus] s1_data_i, // 1 input wire[`MemBus] s1_data_i, // 1
input wire s1_ack_i, // 1访
output reg s1_req_o, // 1访
output reg s1_we_o, // 1 output reg s1_we_o, // 1
// slave 2 interface // slave 2 interface
output reg[`MemAddrBus] s2_addr_o, // 2 output reg[`MemAddrBus] s2_addr_o, // 2
output reg[`MemBus] s2_data_o, // 2 output reg[`MemBus] s2_data_o, // 2
input wire[`MemBus] s2_data_i, // 2 input wire[`MemBus] s2_data_i, // 2
input wire s2_ack_i, // 2访
output reg s2_req_o, // 2访
output reg s2_we_o, // 2 output reg s2_we_o, // 2
// slave 3 interface // slave 3 interface
output reg[`MemAddrBus] s3_addr_o, // 3 output reg[`MemAddrBus] s3_addr_o, // 3
output reg[`MemBus] s3_data_o, // 3 output reg[`MemBus] s3_data_o, // 3
input wire[`MemBus] s3_data_i, // 3 input wire[`MemBus] s3_data_i, // 3
input wire s3_ack_i, // 3访
output reg s3_req_o, // 3访
output reg s3_we_o, // 3 output reg s3_we_o, // 3
// slave 4 interface // slave 4 interface
output reg[`MemAddrBus] s4_addr_o, // 4 output reg[`MemAddrBus] s4_addr_o, // 4
output reg[`MemBus] s4_data_o, // 4 output reg[`MemBus] s4_data_o, // 4
input wire[`MemBus] s4_data_i, // 4 input wire[`MemBus] s4_data_i, // 4
input wire s4_ack_i, // 4访
output reg s4_req_o, // 4访
output reg s4_we_o, // 4 output reg s4_we_o, // 4
// slave 5 interface // slave 5 interface
output reg[`MemAddrBus] s5_addr_o, // 5 output reg[`MemAddrBus] s5_addr_o, // 5
output reg[`MemBus] s5_data_o, // 5 output reg[`MemBus] s5_data_o, // 5
input wire[`MemBus] s5_data_i, // 5 input wire[`MemBus] s5_data_i, // 5
input wire s5_ack_i, // 5访
output reg s5_req_o, // 5访
output reg s5_we_o, // 5 output reg s5_we_o, // 5
output reg hold_flag_o // 线 output reg hold_flag_o // 线
@ -156,10 +140,6 @@ module rib(
// (访) // (访)
always @ (*) begin always @ (*) begin
if (rst == `RstEnable) begin if (rst == `RstEnable) begin
m0_ack_o = `RIB_NACK;
m1_ack_o = `RIB_NACK;
m2_ack_o = `RIB_NACK;
m3_ack_o = `RIB_NACK;
m0_data_o = `ZeroWord; m0_data_o = `ZeroWord;
m1_data_o = `INST_NOP; m1_data_o = `INST_NOP;
m2_data_o = `ZeroWord; m2_data_o = `ZeroWord;
@ -177,12 +157,6 @@ module rib(
s3_data_o = `ZeroWord; s3_data_o = `ZeroWord;
s4_data_o = `ZeroWord; s4_data_o = `ZeroWord;
s5_data_o = `ZeroWord; s5_data_o = `ZeroWord;
s0_req_o = `RIB_NREQ;
s1_req_o = `RIB_NREQ;
s2_req_o = `RIB_NREQ;
s3_req_o = `RIB_NREQ;
s4_req_o = `RIB_NREQ;
s5_req_o = `RIB_NREQ;
s0_we_o = `WriteDisable; s0_we_o = `WriteDisable;
s1_we_o = `WriteDisable; s1_we_o = `WriteDisable;
s2_we_o = `WriteDisable; s2_we_o = `WriteDisable;
@ -190,10 +164,6 @@ module rib(
s4_we_o = `WriteDisable; s4_we_o = `WriteDisable;
s5_we_o = `WriteDisable; s5_we_o = `WriteDisable;
end else begin end else begin
m0_ack_o = `RIB_NACK;
m1_ack_o = `RIB_NACK;
m2_ack_o = `RIB_NACK;
m3_ack_o = `RIB_NACK;
m0_data_o = `ZeroWord; m0_data_o = `ZeroWord;
m1_data_o = `INST_NOP; m1_data_o = `INST_NOP;
m2_data_o = `ZeroWord; m2_data_o = `ZeroWord;
@ -211,12 +181,6 @@ module rib(
s3_data_o = `ZeroWord; s3_data_o = `ZeroWord;
s4_data_o = `ZeroWord; s4_data_o = `ZeroWord;
s5_data_o = `ZeroWord; s5_data_o = `ZeroWord;
s0_req_o = `RIB_NREQ;
s1_req_o = `RIB_NREQ;
s2_req_o = `RIB_NREQ;
s3_req_o = `RIB_NREQ;
s4_req_o = `RIB_NREQ;
s5_req_o = `RIB_NREQ;
s0_we_o = `WriteDisable; s0_we_o = `WriteDisable;
s1_we_o = `WriteDisable; s1_we_o = `WriteDisable;
s2_we_o = `WriteDisable; s2_we_o = `WriteDisable;
@ -228,51 +192,39 @@ module rib(
grant0: begin grant0: begin
case (m0_addr_i[31:28]) case (m0_addr_i[31:28])
slave_0: begin slave_0: begin
s0_req_o = m0_req_i;
s0_we_o = m0_we_i; s0_we_o = m0_we_i;
s0_addr_o = {{4'h0}, {m0_addr_i[27:0]}}; s0_addr_o = {{4'h0}, {m0_addr_i[27:0]}};
s0_data_o = m0_data_i; s0_data_o = m0_data_i;
m0_ack_o = s0_ack_i;
m0_data_o = s0_data_i; m0_data_o = s0_data_i;
end end
slave_1: begin slave_1: begin
s1_req_o = m0_req_i;
s1_we_o = m0_we_i; s1_we_o = m0_we_i;
s1_addr_o = {{4'h0}, {m0_addr_i[27:0]}}; s1_addr_o = {{4'h0}, {m0_addr_i[27:0]}};
s1_data_o = m0_data_i; s1_data_o = m0_data_i;
m0_ack_o = s1_ack_i;
m0_data_o = s1_data_i; m0_data_o = s1_data_i;
end end
slave_2: begin slave_2: begin
s2_req_o = m0_req_i;
s2_we_o = m0_we_i; s2_we_o = m0_we_i;
s2_addr_o = {{4'h0}, {m0_addr_i[27:0]}}; s2_addr_o = {{4'h0}, {m0_addr_i[27:0]}};
s2_data_o = m0_data_i; s2_data_o = m0_data_i;
m0_ack_o = s2_ack_i;
m0_data_o = s2_data_i; m0_data_o = s2_data_i;
end end
slave_3: begin slave_3: begin
s3_req_o = m0_req_i;
s3_we_o = m0_we_i; s3_we_o = m0_we_i;
s3_addr_o = {{4'h0}, {m0_addr_i[27:0]}}; s3_addr_o = {{4'h0}, {m0_addr_i[27:0]}};
s3_data_o = m0_data_i; s3_data_o = m0_data_i;
m0_ack_o = s3_ack_i;
m0_data_o = s3_data_i; m0_data_o = s3_data_i;
end end
slave_4: begin slave_4: begin
s4_req_o = m0_req_i;
s4_we_o = m0_we_i; s4_we_o = m0_we_i;
s4_addr_o = {{4'h0}, {m0_addr_i[27:0]}}; s4_addr_o = {{4'h0}, {m0_addr_i[27:0]}};
s4_data_o = m0_data_i; s4_data_o = m0_data_i;
m0_ack_o = s4_ack_i;
m0_data_o = s4_data_i; m0_data_o = s4_data_i;
end end
slave_5: begin slave_5: begin
s5_req_o = m0_req_i;
s5_we_o = m0_we_i; s5_we_o = m0_we_i;
s5_addr_o = {{4'h0}, {m0_addr_i[27:0]}}; s5_addr_o = {{4'h0}, {m0_addr_i[27:0]}};
s5_data_o = m0_data_i; s5_data_o = m0_data_i;
m0_ack_o = s5_ack_i;
m0_data_o = s5_data_i; m0_data_o = s5_data_i;
end end
default: begin default: begin
@ -283,51 +235,39 @@ module rib(
grant1: begin grant1: begin
case (m1_addr_i[31:28]) case (m1_addr_i[31:28])
slave_0: begin slave_0: begin
s0_req_o = m1_req_i;
s0_we_o = m1_we_i; s0_we_o = m1_we_i;
s0_addr_o = {{4'h0}, {m1_addr_i[27:0]}}; s0_addr_o = {{4'h0}, {m1_addr_i[27:0]}};
s0_data_o = m1_data_i; s0_data_o = m1_data_i;
m1_ack_o = s0_ack_i;
m1_data_o = s0_data_i; m1_data_o = s0_data_i;
end end
slave_1: begin slave_1: begin
s1_req_o = m1_req_i;
s1_we_o = m1_we_i; s1_we_o = m1_we_i;
s1_addr_o = {{4'h0}, {m1_addr_i[27:0]}}; s1_addr_o = {{4'h0}, {m1_addr_i[27:0]}};
s1_data_o = m1_data_i; s1_data_o = m1_data_i;
m1_ack_o = s1_ack_i;
m1_data_o = s1_data_i; m1_data_o = s1_data_i;
end end
slave_2: begin slave_2: begin
s2_req_o = m1_req_i;
s2_we_o = m1_we_i; s2_we_o = m1_we_i;
s2_addr_o = {{4'h0}, {m1_addr_i[27:0]}}; s2_addr_o = {{4'h0}, {m1_addr_i[27:0]}};
s2_data_o = m1_data_i; s2_data_o = m1_data_i;
m1_ack_o = s2_ack_i;
m1_data_o = s2_data_i; m1_data_o = s2_data_i;
end end
slave_3: begin slave_3: begin
s3_req_o = m1_req_i;
s3_we_o = m1_we_i; s3_we_o = m1_we_i;
s3_addr_o = {{4'h0}, {m1_addr_i[27:0]}}; s3_addr_o = {{4'h0}, {m1_addr_i[27:0]}};
s3_data_o = m1_data_i; s3_data_o = m1_data_i;
m1_ack_o = s3_ack_i;
m1_data_o = s3_data_i; m1_data_o = s3_data_i;
end end
slave_4: begin slave_4: begin
s4_req_o = m1_req_i;
s4_we_o = m1_we_i; s4_we_o = m1_we_i;
s4_addr_o = {{4'h0}, {m1_addr_i[27:0]}}; s4_addr_o = {{4'h0}, {m1_addr_i[27:0]}};
s4_data_o = m1_data_i; s4_data_o = m1_data_i;
m1_ack_o = s4_ack_i;
m1_data_o = s4_data_i; m1_data_o = s4_data_i;
end end
slave_5: begin slave_5: begin
s5_req_o = m1_req_i;
s5_we_o = m1_we_i; s5_we_o = m1_we_i;
s5_addr_o = {{4'h0}, {m1_addr_i[27:0]}}; s5_addr_o = {{4'h0}, {m1_addr_i[27:0]}};
s5_data_o = m1_data_i; s5_data_o = m1_data_i;
m1_ack_o = s5_ack_i;
m1_data_o = s5_data_i; m1_data_o = s5_data_i;
end end
default: begin default: begin
@ -338,51 +278,39 @@ module rib(
grant2: begin grant2: begin
case (m2_addr_i[31:28]) case (m2_addr_i[31:28])
slave_0: begin slave_0: begin
s0_req_o = m2_req_i;
s0_we_o = m2_we_i; s0_we_o = m2_we_i;
s0_addr_o = {{4'h0}, {m2_addr_i[27:0]}}; s0_addr_o = {{4'h0}, {m2_addr_i[27:0]}};
s0_data_o = m2_data_i; s0_data_o = m2_data_i;
m2_ack_o = s0_ack_i;
m2_data_o = s0_data_i; m2_data_o = s0_data_i;
end end
slave_1: begin slave_1: begin
s1_req_o = m2_req_i;
s1_we_o = m2_we_i; s1_we_o = m2_we_i;
s1_addr_o = {{4'h0}, {m2_addr_i[27:0]}}; s1_addr_o = {{4'h0}, {m2_addr_i[27:0]}};
s1_data_o = m2_data_i; s1_data_o = m2_data_i;
m2_ack_o = s1_ack_i;
m2_data_o = s1_data_i; m2_data_o = s1_data_i;
end end
slave_2: begin slave_2: begin
s2_req_o = m2_req_i;
s2_we_o = m2_we_i; s2_we_o = m2_we_i;
s2_addr_o = {{4'h0}, {m2_addr_i[27:0]}}; s2_addr_o = {{4'h0}, {m2_addr_i[27:0]}};
s2_data_o = m2_data_i; s2_data_o = m2_data_i;
m2_ack_o = s2_ack_i;
m2_data_o = s2_data_i; m2_data_o = s2_data_i;
end end
slave_3: begin slave_3: begin
s3_req_o = m2_req_i;
s3_we_o = m2_we_i; s3_we_o = m2_we_i;
s3_addr_o = {{4'h0}, {m2_addr_i[27:0]}}; s3_addr_o = {{4'h0}, {m2_addr_i[27:0]}};
s3_data_o = m2_data_i; s3_data_o = m2_data_i;
m2_ack_o = s3_ack_i;
m2_data_o = s3_data_i; m2_data_o = s3_data_i;
end end
slave_4: begin slave_4: begin
s4_req_o = m2_req_i;
s4_we_o = m2_we_i; s4_we_o = m2_we_i;
s4_addr_o = {{4'h0}, {m2_addr_i[27:0]}}; s4_addr_o = {{4'h0}, {m2_addr_i[27:0]}};
s4_data_o = m2_data_i; s4_data_o = m2_data_i;
m2_ack_o = s4_ack_i;
m2_data_o = s4_data_i; m2_data_o = s4_data_i;
end end
slave_5: begin slave_5: begin
s5_req_o = m2_req_i;
s5_we_o = m2_we_i; s5_we_o = m2_we_i;
s5_addr_o = {{4'h0}, {m2_addr_i[27:0]}}; s5_addr_o = {{4'h0}, {m2_addr_i[27:0]}};
s5_data_o = m2_data_i; s5_data_o = m2_data_i;
m2_ack_o = s5_ack_i;
m2_data_o = s5_data_i; m2_data_o = s5_data_i;
end end
default: begin default: begin
@ -393,51 +321,39 @@ module rib(
grant3: begin grant3: begin
case (m3_addr_i[31:28]) case (m3_addr_i[31:28])
slave_0: begin slave_0: begin
s0_req_o = m3_req_i;
s0_we_o = m3_we_i; s0_we_o = m3_we_i;
s0_addr_o = {{4'h0}, {m3_addr_i[27:0]}}; s0_addr_o = {{4'h0}, {m3_addr_i[27:0]}};
s0_data_o = m3_data_i; s0_data_o = m3_data_i;
m3_ack_o = s0_ack_i;
m3_data_o = s0_data_i; m3_data_o = s0_data_i;
end end
slave_1: begin slave_1: begin
s1_req_o = m3_req_i;
s1_we_o = m3_we_i; s1_we_o = m3_we_i;
s1_addr_o = {{4'h0}, {m3_addr_i[27:0]}}; s1_addr_o = {{4'h0}, {m3_addr_i[27:0]}};
s1_data_o = m3_data_i; s1_data_o = m3_data_i;
m3_ack_o = s1_ack_i;
m3_data_o = s1_data_i; m3_data_o = s1_data_i;
end end
slave_2: begin slave_2: begin
s2_req_o = m3_req_i;
s2_we_o = m3_we_i; s2_we_o = m3_we_i;
s2_addr_o = {{4'h0}, {m3_addr_i[27:0]}}; s2_addr_o = {{4'h0}, {m3_addr_i[27:0]}};
s2_data_o = m3_data_i; s2_data_o = m3_data_i;
m3_ack_o = s2_ack_i;
m3_data_o = s2_data_i; m3_data_o = s2_data_i;
end end
slave_3: begin slave_3: begin
s3_req_o = m3_req_i;
s3_we_o = m3_we_i; s3_we_o = m3_we_i;
s3_addr_o = {{4'h0}, {m3_addr_i[27:0]}}; s3_addr_o = {{4'h0}, {m3_addr_i[27:0]}};
s3_data_o = m3_data_i; s3_data_o = m3_data_i;
m3_ack_o = s3_ack_i;
m3_data_o = s3_data_i; m3_data_o = s3_data_i;
end end
slave_4: begin slave_4: begin
s4_req_o = m3_req_i;
s4_we_o = m3_we_i; s4_we_o = m3_we_i;
s4_addr_o = {{4'h0}, {m3_addr_i[27:0]}}; s4_addr_o = {{4'h0}, {m3_addr_i[27:0]}};
s4_data_o = m3_data_i; s4_data_o = m3_data_i;
m3_ack_o = s4_ack_i;
m3_data_o = s4_data_i; m3_data_o = s4_data_i;
end end
slave_5: begin slave_5: begin
s5_req_o = m3_req_i;
s5_we_o = m3_we_i; s5_we_o = m3_we_i;
s5_addr_o = {{4'h0}, {m3_addr_i[27:0]}}; s5_addr_o = {{4'h0}, {m3_addr_i[27:0]}};
s5_data_o = m3_data_i; s5_data_o = m3_data_i;
m3_ack_o = s5_ack_i;
m3_data_o = s5_data_i; m3_data_o = s5_data_i;
end end
default: begin default: begin

View File

@ -22,12 +22,10 @@ module gpio(
input wire rst, input wire rst,
input wire we_i, input wire we_i,
input wire req_i,
input wire[31:0] addr_i, input wire[31:0] addr_i,
input wire[31:0] data_i, input wire[31:0] data_i,
output reg[31:0] data_o, output reg[31:0] data_o,
output reg ack_o,
input wire[1:0] io_pin_i, input wire[1:0] io_pin_i,
output wire[31:0] reg_ctrl, output wire[31:0] reg_ctrl,

View File

@ -25,10 +25,8 @@ module ram(
input wire we_i, // write enable input wire we_i, // write enable
input wire[`MemAddrBus] addr_i, // addr input wire[`MemAddrBus] addr_i, // addr
input wire[`MemBus] data_i, input wire[`MemBus] data_i,
input wire req_i,
output reg[`MemBus] data_o, // read data output reg[`MemBus] data_o // read data
output reg ack_o
); );
@ -36,12 +34,8 @@ module ram(
always @ (posedge clk) begin always @ (posedge clk) begin
if (rst == `RstEnable) begin if (we_i == `WriteEnable) begin
ack_o <= `RIB_ACK; _ram[addr_i[31:2]] <= data_i;
end else begin
if (we_i == `WriteEnable) begin
_ram[addr_i[31:2]] <= data_i;
end
end end
end end

View File

@ -25,10 +25,8 @@ module rom(
input wire we_i, // write enable input wire we_i, // write enable
input wire[`MemAddrBus] addr_i, // addr input wire[`MemAddrBus] addr_i, // addr
input wire[`MemBus] data_i, input wire[`MemBus] data_i,
input wire req_i,
output reg[`MemBus] data_o, // read data output reg[`MemBus] data_o // read data
output reg ack_o
); );
@ -36,12 +34,8 @@ module rom(
always @ (posedge clk) begin always @ (posedge clk) begin
if (rst == `RstEnable) begin if (we_i == `WriteEnable) begin
ack_o <= `RIB_ACK; _rom[addr_i[31:2]] <= data_i;
end else begin
if (we_i == `WriteEnable) begin
_rom[addr_i[31:2]] <= data_i;
end
end end
end end

View File

@ -24,10 +24,8 @@ module spi(
input wire[31:0] data_i, input wire[31:0] data_i,
input wire[31:0] addr_i, input wire[31:0] addr_i,
input wire we_i, input wire we_i,
input wire req_i,
output reg[31:0] data_o, output reg[31:0] data_o,
output reg ack_o,
output reg spi_mosi, // spispi output reg spi_mosi, // spispi
input wire spi_miso, // spispi input wire spi_miso, // spispi

View File

@ -26,11 +26,9 @@ module timer(
input wire[31:0] data_i, input wire[31:0] data_i,
input wire[31:0] addr_i, input wire[31:0] addr_i,
input wire we_i, input wire we_i,
input wire req_i,
output reg[31:0] data_o, output reg[31:0] data_o,
output wire int_sig_o, output wire int_sig_o
output reg ack_o
); );

View File

@ -22,12 +22,10 @@ module uart(
input wire rst, input wire rst,
input wire we_i, input wire we_i,
input wire req_i,
input wire[31:0] addr_i, input wire[31:0] addr_i,
input wire[31:0] data_i, input wire[31:0] data_i,
output reg[31:0] data_o, output reg[31:0] data_o,
output reg ack_o,
output wire tx_pin, output wire tx_pin,
input wire rx_pin input wire rx_pin

View File

@ -50,7 +50,6 @@ module tinyriscv_soc_top(
wire[`MemAddrBus] m0_addr_i; wire[`MemAddrBus] m0_addr_i;
wire[`MemBus] m0_data_i; wire[`MemBus] m0_data_i;
wire[`MemBus] m0_data_o; wire[`MemBus] m0_data_o;
wire m0_ack_o;
wire m0_req_i; wire m0_req_i;
wire m0_we_i; wire m0_we_i;
@ -58,7 +57,6 @@ module tinyriscv_soc_top(
wire[`MemAddrBus] m1_addr_i; wire[`MemAddrBus] m1_addr_i;
wire[`MemBus] m1_data_i; wire[`MemBus] m1_data_i;
wire[`MemBus] m1_data_o; wire[`MemBus] m1_data_o;
wire m1_ack_o;
wire m1_req_i; wire m1_req_i;
wire m1_we_i; wire m1_we_i;
@ -66,7 +64,6 @@ module tinyriscv_soc_top(
wire[`MemAddrBus] m2_addr_i; wire[`MemAddrBus] m2_addr_i;
wire[`MemBus] m2_data_i; wire[`MemBus] m2_data_i;
wire[`MemBus] m2_data_o; wire[`MemBus] m2_data_o;
wire m2_ack_o;
wire m2_req_i; wire m2_req_i;
wire m2_we_i; wire m2_we_i;
@ -74,7 +71,6 @@ module tinyriscv_soc_top(
wire[`MemAddrBus] m3_addr_i; wire[`MemAddrBus] m3_addr_i;
wire[`MemBus] m3_data_i; wire[`MemBus] m3_data_i;
wire[`MemBus] m3_data_o; wire[`MemBus] m3_data_o;
wire m3_ack_o;
wire m3_req_i; wire m3_req_i;
wire m3_we_i; wire m3_we_i;
@ -82,48 +78,36 @@ module tinyriscv_soc_top(
wire[`MemAddrBus] s0_addr_o; wire[`MemAddrBus] s0_addr_o;
wire[`MemBus] s0_data_o; wire[`MemBus] s0_data_o;
wire[`MemBus] s0_data_i; wire[`MemBus] s0_data_i;
wire s0_ack_i;
wire s0_req_o;
wire s0_we_o; wire s0_we_o;
// slave 1 interface // slave 1 interface
wire[`MemAddrBus] s1_addr_o; wire[`MemAddrBus] s1_addr_o;
wire[`MemBus] s1_data_o; wire[`MemBus] s1_data_o;
wire[`MemBus] s1_data_i; wire[`MemBus] s1_data_i;
wire s1_ack_i;
wire s1_req_o;
wire s1_we_o; wire s1_we_o;
// slave 2 interface // slave 2 interface
wire[`MemAddrBus] s2_addr_o; wire[`MemAddrBus] s2_addr_o;
wire[`MemBus] s2_data_o; wire[`MemBus] s2_data_o;
wire[`MemBus] s2_data_i; wire[`MemBus] s2_data_i;
wire s2_ack_i;
wire s2_req_o;
wire s2_we_o; wire s2_we_o;
// slave 3 interface // slave 3 interface
wire[`MemAddrBus] s3_addr_o; wire[`MemAddrBus] s3_addr_o;
wire[`MemBus] s3_data_o; wire[`MemBus] s3_data_o;
wire[`MemBus] s3_data_i; wire[`MemBus] s3_data_i;
wire s3_ack_i;
wire s3_req_o;
wire s3_we_o; wire s3_we_o;
// slave 4 interface // slave 4 interface
wire[`MemAddrBus] s4_addr_o; wire[`MemAddrBus] s4_addr_o;
wire[`MemBus] s4_data_o; wire[`MemBus] s4_data_o;
wire[`MemBus] s4_data_i; wire[`MemBus] s4_data_i;
wire s4_ack_i;
wire s4_req_o;
wire s4_we_o; wire s4_we_o;
// slave 5 interface // slave 5 interface
wire[`MemAddrBus] s5_addr_o; wire[`MemAddrBus] s5_addr_o;
wire[`MemBus] s5_data_o; wire[`MemBus] s5_data_o;
wire[`MemBus] s5_data_i; wire[`MemBus] s5_data_i;
wire s5_ack_i;
wire s5_req_o;
wire s5_we_o; wire s5_we_o;
// rib // rib
@ -199,9 +183,7 @@ module tinyriscv_soc_top(
.we_i(s0_we_o), .we_i(s0_we_o),
.addr_i(s0_addr_o), .addr_i(s0_addr_o),
.data_i(s0_data_o), .data_i(s0_data_o),
.req_i(s0_req_o), .data_o(s0_data_i)
.data_o(s0_data_i),
.ack_o(s0_ack_i)
); );
// ram // ram
@ -211,9 +193,7 @@ module tinyriscv_soc_top(
.we_i(s1_we_o), .we_i(s1_we_o),
.addr_i(s1_addr_o), .addr_i(s1_addr_o),
.data_i(s1_data_o), .data_i(s1_data_o),
.req_i(s1_req_o), .data_o(s1_data_i)
.data_o(s1_data_i),
.ack_o(s1_ack_i)
); );
// timer // timer
@ -224,9 +204,7 @@ module tinyriscv_soc_top(
.addr_i(s2_addr_o), .addr_i(s2_addr_o),
.we_i(s2_we_o), .we_i(s2_we_o),
.data_o(s2_data_i), .data_o(s2_data_i),
.int_sig_o(timer0_int), .int_sig_o(timer0_int)
.req_i(s2_req_o),
.ack_o(s2_ack_i)
); );
// uart // uart
@ -234,11 +212,9 @@ module tinyriscv_soc_top(
.clk(clk), .clk(clk),
.rst(rst), .rst(rst),
.we_i(s3_we_o), .we_i(s3_we_o),
.req_i(s3_req_o),
.addr_i(s3_addr_o), .addr_i(s3_addr_o),
.data_i(s3_data_o), .data_i(s3_data_o),
.data_o(s3_data_i), .data_o(s3_data_i),
.ack_o(s3_ack_i),
.tx_pin(uart_tx_pin), .tx_pin(uart_tx_pin),
.rx_pin(uart_rx_pin) .rx_pin(uart_rx_pin)
); );
@ -255,11 +231,9 @@ module tinyriscv_soc_top(
.clk(clk), .clk(clk),
.rst(rst), .rst(rst),
.we_i(s4_we_o), .we_i(s4_we_o),
.req_i(s4_req_o),
.addr_i(s4_addr_o), .addr_i(s4_addr_o),
.data_i(s4_data_o), .data_i(s4_data_o),
.data_o(s4_data_i), .data_o(s4_data_i),
.ack_o(s4_ack_i),
.io_pin_i(io_in), .io_pin_i(io_in),
.reg_ctrl(gpio_ctrl), .reg_ctrl(gpio_ctrl),
.reg_data(gpio_data) .reg_data(gpio_data)
@ -272,9 +246,7 @@ module tinyriscv_soc_top(
.data_i(s5_data_o), .data_i(s5_data_o),
.addr_i(s5_addr_o), .addr_i(s5_addr_o),
.we_i(s5_we_o), .we_i(s5_we_o),
.req_i(s5_req_o),
.data_o(s5_data_i), .data_o(s5_data_i),
.ack_o(s5_ack_i),
.spi_mosi(spi_mosi), .spi_mosi(spi_mosi),
.spi_miso(spi_miso), .spi_miso(spi_miso),
.spi_ss(spi_ss), .spi_ss(spi_ss),
@ -290,7 +262,6 @@ module tinyriscv_soc_top(
.m0_addr_i(m0_addr_i), .m0_addr_i(m0_addr_i),
.m0_data_i(m0_data_i), .m0_data_i(m0_data_i),
.m0_data_o(m0_data_o), .m0_data_o(m0_data_o),
.m0_ack_o(m0_ack_o),
.m0_req_i(m0_req_i), .m0_req_i(m0_req_i),
.m0_we_i(m0_we_i), .m0_we_i(m0_we_i),
@ -298,7 +269,6 @@ module tinyriscv_soc_top(
.m1_addr_i(m1_addr_i), .m1_addr_i(m1_addr_i),
.m1_data_i(`ZeroWord), .m1_data_i(`ZeroWord),
.m1_data_o(m1_data_o), .m1_data_o(m1_data_o),
.m1_ack_o(m1_ack_o),
.m1_req_i(`RIB_REQ), .m1_req_i(`RIB_REQ),
.m1_we_i(`WriteDisable), .m1_we_i(`WriteDisable),
@ -306,7 +276,6 @@ module tinyriscv_soc_top(
.m2_addr_i(m2_addr_i), .m2_addr_i(m2_addr_i),
.m2_data_i(m2_data_i), .m2_data_i(m2_data_i),
.m2_data_o(m2_data_o), .m2_data_o(m2_data_o),
.m2_ack_o(m2_ack_o),
.m2_req_i(m2_req_i), .m2_req_i(m2_req_i),
.m2_we_i(m2_we_i), .m2_we_i(m2_we_i),
@ -314,7 +283,6 @@ module tinyriscv_soc_top(
.m3_addr_i(m3_addr_i), .m3_addr_i(m3_addr_i),
.m3_data_i(m3_data_i), .m3_data_i(m3_data_i),
.m3_data_o(m3_data_o), .m3_data_o(m3_data_o),
.m3_ack_o(m3_ack_o),
.m3_req_i(m3_req_i), .m3_req_i(m3_req_i),
.m3_we_i(m3_we_i), .m3_we_i(m3_we_i),
@ -322,48 +290,36 @@ module tinyriscv_soc_top(
.s0_addr_o(s0_addr_o), .s0_addr_o(s0_addr_o),
.s0_data_o(s0_data_o), .s0_data_o(s0_data_o),
.s0_data_i(s0_data_i), .s0_data_i(s0_data_i),
.s0_ack_i(s0_ack_i),
.s0_req_o(s0_req_o),
.s0_we_o(s0_we_o), .s0_we_o(s0_we_o),
// slave 1 interface // slave 1 interface
.s1_addr_o(s1_addr_o), .s1_addr_o(s1_addr_o),
.s1_data_o(s1_data_o), .s1_data_o(s1_data_o),
.s1_data_i(s1_data_i), .s1_data_i(s1_data_i),
.s1_ack_i(s1_ack_i),
.s1_req_o(s1_req_o),
.s1_we_o(s1_we_o), .s1_we_o(s1_we_o),
// slave 2 interface // slave 2 interface
.s2_addr_o(s2_addr_o), .s2_addr_o(s2_addr_o),
.s2_data_o(s2_data_o), .s2_data_o(s2_data_o),
.s2_data_i(s2_data_i), .s2_data_i(s2_data_i),
.s2_ack_i(s2_ack_i),
.s2_req_o(s2_req_o),
.s2_we_o(s2_we_o), .s2_we_o(s2_we_o),
// slave 3 interface // slave 3 interface
.s3_addr_o(s3_addr_o), .s3_addr_o(s3_addr_o),
.s3_data_o(s3_data_o), .s3_data_o(s3_data_o),
.s3_data_i(s3_data_i), .s3_data_i(s3_data_i),
.s3_ack_i(s3_ack_i),
.s3_req_o(s3_req_o),
.s3_we_o(s3_we_o), .s3_we_o(s3_we_o),
// slave 4 interface // slave 4 interface
.s4_addr_o(s4_addr_o), .s4_addr_o(s4_addr_o),
.s4_data_o(s4_data_o), .s4_data_o(s4_data_o),
.s4_data_i(s4_data_i), .s4_data_i(s4_data_i),
.s4_ack_i(s4_ack_i),
.s4_req_o(s4_req_o),
.s4_we_o(s4_we_o), .s4_we_o(s4_we_o),
// slave 5 interface // slave 5 interface
.s5_addr_o(s5_addr_o), .s5_addr_o(s5_addr_o),
.s5_data_o(s5_data_o), .s5_data_o(s5_data_o),
.s5_data_i(s5_data_i), .s5_data_i(s5_data_i),
.s5_ack_i(s5_ack_i),
.s5_req_o(s5_req_o),
.s5_we_o(s5_we_o), .s5_we_o(s5_we_o),
.hold_flag_o(rib_hold_flag_o) .hold_flag_o(rib_hold_flag_o)