@@ -3,49 +3,49 @@ package treecorel2
33import chisel3 ._
44import chisel3 .util ._
55
6- class SOCAXI4ARWIO extends Bundle {
6+ class SOCAXI4ARWIO extends Bundle with AXI4Config {
77 val addr = Output (UInt (32 .W ))
8- val id = Output (UInt (4 .W ))
9- val len = Output (UInt (8 .W ))
10- val size = Output (UInt (3 .W ))
11- val burst = Output (UInt (2 .W ))
8+ val id = Output (UInt (AxiIdLen .W ))
9+ val len = Output (UInt (AxiLen .W ))
10+ val size = Output (UInt (AxiSizeLen .W ))
11+ val burst = Output (UInt (AxiBurstLen .W ))
1212}
1313
1414class AXI4ARWIO extends SOCAXI4ARWIO {
15- override val addr = Output (UInt (64 .W ))
16- val prot = Output (UInt (3 .W ))
17- val user = Output (UInt (1 .W ))
15+ override val addr = Output (UInt (XLen .W ))
16+ val prot = Output (UInt (AxiProtLen .W ))
17+ val user = Output (UInt (AxiUserLen .W ))
1818 val lock = Output (Bool ())
19- val cache = Output (UInt (4 .W ))
20- val qos = Output (UInt (4 .W ))
19+ val cache = Output (UInt (AxiCacheLen .W ))
20+ val qos = Output (UInt (AxiQosLen .W ))
2121}
2222
23- class SOCAXI4WIO extends Bundle {
24- val data = Output (UInt (64 .W ))
25- val strb = Output (UInt (8 .W ))
23+ class SOCAXI4WIO extends Bundle with AXI4Config {
24+ val data = Output (UInt (XLen .W ))
25+ val strb = Output (UInt (AxiStrb .W ))
2626 val last = Output (Bool ())
2727}
2828
2929class AXI4WIO extends SOCAXI4WIO {}
3030
31- class SOCAXI4BIO extends Bundle {
32- val resp = Output (UInt (2 .W ))
33- val id = Output (UInt (4 .W ))
31+ class SOCAXI4BIO extends Bundle with AXI4Config {
32+ val resp = Output (UInt (AxiRespLen .W ))
33+ val id = Output (UInt (AxiIdLen .W ))
3434}
3535
3636class AXI4BIO extends SOCAXI4BIO {
37- val user = Output (UInt (1 .W ))
37+ val user = Output (UInt (AxiUserLen .W ))
3838}
3939
40- class SOCAXI4RIO extends Bundle {
41- val resp = Output (UInt (2 .W ))
42- val data = Output (UInt (64 .W ))
40+ class SOCAXI4RIO extends Bundle with AXI4Config {
41+ val resp = Output (UInt (AxiRespLen .W ))
42+ val data = Output (UInt (XLen .W ))
4343 val last = Output (Bool ())
44- val id = Output (UInt (4 .W ))
44+ val id = Output (UInt (AxiIdLen .W ))
4545}
4646
4747class AXI4RIO extends SOCAXI4RIO {
48- val user = Output (UInt (1 .W ))
48+ val user = Output (UInt (AxiUserLen .W ))
4949}
5050
5151class SOCAXI4IO extends Bundle {
0 commit comments