Skip to content

Commit

Permalink
fix for pack reconfig for uint8 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjogoTT authored Aug 15, 2024
1 parent 841a944 commit cb61929
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/inc/cpack_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ namespace ckernel::packer
TTI_STALLWAIT(p_stall::STALL_CFG, p_stall::THCON);
TTI_WRCFG(p_gpr_pack::TMP_LO, p_cfg::WRCFG_32b, THCON_SEC0_REG1_Row_start_section_size_ADDR32 + 2);

uint32_t reconfig_PCK_DEST_RD_CTRL_Read_unsigned = 0;
if (pack_dst_format == (uint)DataFormat::UInt8) {
reconfig_PCK_DEST_RD_CTRL_Read_unsigned = 1;
}
cfg_reg_rmw_tensix<PCK_DEST_RD_CTRL_Read_unsigned_RMW>(reconfig_PCK_DEST_RD_CTRL_Read_unsigned);

if (IS_BFP_FORMAT(pack_output_dst_format)) {
TTI_WRCFG(p_gpr_pack::EXP0_SEC_SIZE_BFP, p_cfg::WRCFG_32b, THCON_SEC0_REG1_Row_start_section_size_ADDR32);
} else if ((pack_output_dst_format == (uint)DataFormat::Lf8) || (pack_output_dst_format == (uint)DataFormat::Int8)) {
Expand Down

0 comments on commit cb61929

Please sign in to comment.