@@ -529,10 +529,10 @@ class SRAMSpec extends ChiselFunSpec {
529
529
val chirrtl = ChiselStage .emitCHIRRTL(new TestModule (1 , 1 ), args = Array (" --full-stacktrace" ))
530
530
531
531
chirrtl should include(
532
- " writePorts : { flip address : UInt<6 >, flip enable : UInt<1>, flip data : UInt<8>[3], flip mask : UInt<1>[3]}[1]"
532
+ " writePorts : { flip address : UInt<5 >, flip enable : UInt<1>, flip data : UInt<8>[3], flip mask : UInt<1>[3]}[1]"
533
533
)
534
534
chirrtl should include(
535
- " readwritePorts : { flip address : UInt<6 >, flip enable : UInt<1>, flip isWrite : UInt<1>, readData : UInt<8>[3], flip writeData : UInt<8>[3], flip mask : UInt<1>[3]}[1]"
535
+ " readwritePorts : { flip address : UInt<5 >, flip enable : UInt<1>, flip isWrite : UInt<1>, readData : UInt<8>[3], flip writeData : UInt<8>[3], flip mask : UInt<1>[3]}[1]"
536
536
)
537
537
538
538
for (i <- 0 until 3 ) {
@@ -576,13 +576,13 @@ class SRAMSpec extends ChiselFunSpec {
576
576
val wrIndexSuffix = if (i == 0 ) " " else s " _ $i"
577
577
578
578
chirrtl should include(
579
- s " read mport mem_out_readPorts_ ${i}_data_MPORT = mem_mem[_mem_out_readPorts_ ${i}_data_T ], readClocks[ ${i}] "
579
+ s " read mport mem_out_readPorts_ ${i}_data_MPORT = mem_mem[_mem_out_readPorts_ ${i}_data_WIRE ], readClocks[ ${i}] "
580
580
)
581
581
chirrtl should include(
582
- s " write mport mem_MPORT ${wrIndexSuffix} = mem_mem[_mem_T ${wrIndexSuffix} ], writeClocks[ ${i}] "
582
+ s " write mport mem_MPORT ${wrIndexSuffix} = mem_mem[mem.writePorts[ ${i} ].address ], writeClocks[ ${i}] "
583
583
)
584
584
chirrtl should include(
585
- s " rdwr mport mem_out_readwritePorts_ ${i}_readData_MPORT = mem_mem[_mem_out_readwritePorts_ ${i}_readData_T ], readwriteClocks[ ${i}] "
585
+ s " rdwr mport mem_out_readwritePorts_ ${i}_readData_MPORT = mem_mem[_mem_out_readwritePorts_ ${i}_readData_WIRE ], readwriteClocks[ ${i}] "
586
586
)
587
587
}
588
588
}
0 commit comments