Skip to content

Commit

Permalink
fix compilation bug (apache#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoreau89 committed Dec 1, 2018
1 parent e549c46 commit 34b6963
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions vta/config/vta_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"LOG_BATCH" : 0,
"LOG_BLOCK_IN" : 4,
"LOG_BLOCK_OUT" : 4,
"LOG_BUS_WIDTH" : 6,
"LOG_UOP_BUFF_SIZE" : 15,
"LOG_INP_BUFF_SIZE" : 15,
"LOG_WGT_BUFF_SIZE" : 18,
Expand Down
4 changes: 2 additions & 2 deletions vta/src/sim/sim_driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ class Device {
sum +=
inp.GetSigned(i * VTA_BLOCK_IN + k) *
wgt.GetSigned(j * VTA_BLOCK_IN + k);
sum = IntTrunc(sum, VTA_ACC_TRUC_BITS);
sum = IntTrunc(sum, VTA_REG_WIDTH);
}
acc.SetSigned(acc_offset, sum);
}
Expand Down Expand Up @@ -555,7 +555,7 @@ class Device {
} else {
value = func(dst.GetSigned(k), src.GetSigned(k));
}
dst.SetSigned(k, IntTrunc(value, VTA_ACC_TRUC_BITS));
dst.SetSigned(k, IntTrunc(value, VTA_REG_WIDTH));
}
}
}
Expand Down

0 comments on commit 34b6963

Please sign in to comment.