Add dprv connection for new Chipyard HellaCacheIO
This commit is contained in:
parent
3887cac15c
commit
7c0a7f7177
|
@ -60,6 +60,9 @@ io.resp.bits.data := result
|
|||
io.busy := busy
|
||||
cmd.ready := rdy
|
||||
|
||||
// Set the HellaCache req privilege to rocc command privilege
|
||||
io.mem.req.bits.dprv := io.cmd.bits.status.dprv
|
||||
|
||||
//===== Begin Accelerator =====
|
||||
val accel = Module(new HLS${FUNC}Blackbox())
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@ void print_vec(int* vec, int length){
|
|||
}
|
||||
|
||||
int main () {
|
||||
int length_a[LENGTH + 1], b_c[LENGTH + LENGTH];
|
||||
int length_a[LENGTH + 1] __attribute__((aligned(64)));
|
||||
int b_c[LENGTH + LENGTH] __attribute__((aligned(64)));
|
||||
//int a[LENGTH], b[LENGTH], c[LENGTH];
|
||||
int length = LENGTH;
|
||||
length_a[0] = length;
|
||||
|
@ -23,6 +24,7 @@ int main () {
|
|||
b_c[i] = i + 5;
|
||||
}
|
||||
|
||||
printf("length_a ptr: %X", length_a);
|
||||
uint64_t begin, end, dur;
|
||||
begin = read_cycle();
|
||||
vadd(length_a, b_c);
|
||||
|
|
Loading…
Reference in New Issue