how many peripherals can be connected to APB?
The address decoding would be the following.
assign PSEL0 = (peri0_addr_start[31:2] >= PADDR[31:2])&&(PADDR[31:2] <= peri0_addr_end[31:2]);assign PSEL1 = (peri1_addr_start[31:2] >= PADDR[31:2])&&(PADDR[31:2] <= peri1_addr_end[31:2]);assign PSEL2 = (peri2_addr_start[31:2] >= PADDR[31:2])&&(PADDR[31:2] <= peri2_addr_end[31:2]);........assign PSELx = (perix_addr_start[31:2] >= PADDR[31:2])&&(PADDR[31:2] <= perix_addr_end[31:2]);
Best regards,Yasuhiko Koumoto.