![](https://csdnimg.cn/release/download_crawler_static/11188473/bg4.jpg)
00,01,02,03,04,05,06,07
10,11,12,13,14,15,16,17
20,21,22,23,24,25,26,27
30,31,32,33,34,35,36,37
40,41,42,43,44,45,46,47
50,51,52,53,54,55,56,57
60,61,62,63,64,65,66,67
70,71,72,73,74,75,76,77
40
41
42
43
44
45
46
47
CLOCK PERIOD = 5
WRITE
OPERATION
TRANSPOSITION
00 17 26 35 44
01 10 27 36 45
02 11 20 37 46
03 12 21 30 47
04 13 22 31 40
05 14 23 32 41
06 15 24 33 42
07 16 25 34 43
RAM_BANK_0
RAM_BANK_1
RAM_BANK_2
RAM_BANK_3
RAM_BANK_4
RAM_BANK_5
RAM_BANK_6
RAM_BANK_7
00,01,02,03,04,05,06,07
10,11,12,13,14,15,16,17
20,21,22,23,24,25,26,27
30,31,32,33,34,35,36,37
40,41,42,43,44,45,46,47
50,51,52,53,54,55,56,57
60,61,62,63,64,65,66,67
70,71,72,73,74,75,76,77
30
31
32
33
34
35
36
37
CLOCK PERIOD = 4
WRITE
OP
ERATION
TRANSPOSITION
00 17 26 35
01 10 27 36
02 11 20 37
03 12 21 30
04 13 22 31
05 14 23 32
06 15 24 33
07 16 25 34
RAM_BANK_0
RAM_BANK_1
RAM_BANK_2
RAM_BANK_3
RAM_BANK_4
RAM_BANK_5
RAM_BANK_6
RAM_BANK_7
00,01,02,03,04,05,06,07
10,11,12,13,14,15,16,17
20,21,22,23,24,25,26,27
30,31,32,33,34,35,36,37
40,41,42,43,44,45,46,47
50,51,52,53,54,55,56,57
60,61,62,63,64,65,66,67
70,71,72,73,74,75,76,77
50
51
52
53
54
55
56
57
CLOCK PERIOD = 6
WRITE
OPERATION
TRANSPOSITION
00 17 26 35 44 53
01 10 27 36 45 54
02 11 20 37 46 55
03 12 21 30 47 56
04 13 22 31 40 57
05 14 23 32 41 50
06 15 24 33 42 51
07 16 25 34 43 52
RAM_BANK_0
RAM_BANK_1
RAM_BANK_2
RAM_BANK_3
RAM_BANK_4
RAM_BANK_5
RAM_BANK_6
RAM_BANK_7
00,01,02,03,04,05,06,07
10,11,12,13,14,15,16,17
20,21,22,23,24,25,26,27
30,31,32,33,34,35,36,37
40,41,42,43,44,45,46,47
50,51,52,53,54,55,56,57
60,61,62,63,64,65,66,67
70,71,72,73,74,75,76,77
60
61
62
63
64
65
66
67
CLOCK PERIOD = 7
WRITE
OPERATION
TRANSPOSITION
00 17 26 35 44 53 62
01 10 27 36 45 54 63
02 11 20 37 46 55 64
03 12 21 30 47 56 65
04 13 22 31 40 57 66
05 14 23 32 41 50 67
06 15 24 33 42 51 60
07 16 25 34 43 52 61
RAM_BANK_0
RAM_BANK_1
RAM_BANK_2
RAM_BANK_3
RAM_BANK_4
RAM_BANK_5
RAM_BANK_6
RAM_BANK_7
00,01,02,03,04,05,06,07
10,11,12,13,14,15,16,17
20,21,22,23,24,25,26,27
30,31,32,33,34,35,36,37
40,41,42,43,44,45,46,47
50,51,52,53,54,55,56,57
60,61,62,63,64,65,66,67
70,71,72,73,74,75,76,77
70
71
72
73
74
75
76
77
CLOCK PERIOD = 8
WRITE
OPERATION
TRANSPOSITION
00 17 26 35 44 53 62 71
01 10 27 36 45 54 63 72
02 11 20 37 46 55 64 73
03 12 21 30 47 56 65 74
04 13 22 31 40 57 66 75
05 14 23 32 41 50 67 76
06 15 24 33 42 51 60 77
07 16 25 34 43 52 61 70
RAM_BANK_0
RAM_BANK_1
RAM_BANK_2
RAM_BANK_3
RAM_BANK_4
RAM_BANK_5
RAM_BANK_6
RAM_BANK_7
图 2 并行矩阵转置模块的写操作示意图
并行矩阵转置模块的读操作:每个时钟周期变换一次 RAM_BANK 的输出顺序,每个
RAM_BANK 每次读出地址随时钟周期而变化,且同一时钟周期内不同的 RAM_BANK 有不
同的读出地址。
00,10,20,30,40,50,60,70
00
10
20
30
40
50
60
70
CLOCK PERIOD = 1
READ
OPERATION
TRANSPOSITION
00 17 26 35 44 53 62 71
01 10 27 36 45 54 63 72
02 11 20 37 46 55 64 73
03 12 21 30 47 56 65 74
04 13 22 31 40 57 66 75
05 14 23 32 41 50 67 76
06 15 24 33 42 51 60 77
07 16 25 34 43 52 61 70
RAM_BANK_0
RAM_BANK_1
RAM_BANK_2
RAM_BANK_3
RAM_BANK_4
RAM_BANK_5
RAM_BANK_6
RAM_BANK_7
READ RAM_BANK_0 RAM_BANK_1 RAM_BANK_2 RAM_BANK_3 RAM_BANK_4 RAM_BANK_5 RAM_BANK_6 RAM_BANK_7
ADDRE 0 1 2 3 4 5 6 7