Research Article
Design of Smart Power-Saving Architecture for Network on Chip
Algorithm 4
VCs with SPS algorithm.
VCs with SPS Algorithm | Input: VCs clock, channel packet, arbiter signal and reset. | Output: channel packet, channel status | (1) VCcount is integer and range is 1 ≤ VCcount ≤ | (2) VCflag includes full flag and empty flag | (3) initial VCcount and VCflag | (4) while (channel packet or arbiter signal be arrival) do | (5) if (channel packet be arrival and full flag != 1) | (6) {VCcount = VCcount + 1 and packet store in VCs} | (7) if (arbiter signal be arrival and empty flag != 1) | (8) {VCcount = and packet be read from VCs} | (9) end while | (10) while (VCcount be change) do | (11) if (VCcount = ) | (12) {assign full flag to 1} | (13) else if (VCcount = 1) | (14) {assign empty flag to 1} | (15) else | (16) {assign full flag and empty flag to 0} | (17) end while |
|