3 The term "Lanes" is borrowed from Hwacha.
7 | reg num | Lane 0 | Lane 1 | Lane 2 | Lane 3 |
8 | ------- | ------ | ------ | ------ | ------ |
9 | r0 | (31.0) | (31.0) | (31.0) | (31.0) |
10 | r1 | (31.0) | (31.0) | (31.0) | (31.0) |
11 | r2 | (31.0) | (31.0) | (31.0) | (31.0) |
15 /* XLEN and N are "baked-in" to the hardware */
18 /* note that N cannot be greater than XLEN */
21 register x[N][32][XLEN];
23 function op_add(rd, rs1, rs2) {
24 /* note that this is ADD, not PADD */
28 x[i][rd] <= x[i][rs1] + x[i][rs2];
30 /* note that "<=" is the Verilog non-blocking assignment operator */