Skip to content

Commit

Permalink
wip: try other values for latency and cpi
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisjube committed Jan 8, 2025
1 parent bacebf3 commit 65e1f17
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions slothy/targets/riscv/xuantie_c908.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def get_min_max_objective(slothy):
RISCVInstruction.classes_by_names["sh"],
RISCVInstruction.classes_by_names["sw"],
RISCVInstruction.classes_by_names["sd"],
): 1,
): 2,

(
RISCVInstruction.classes_by_names["mul"],
Expand All @@ -208,9 +208,25 @@ def get_min_max_objective(slothy):
RISCVIntegerRegisterRegister: 1,
RISCVIntegerRegisterImmediate: 1,
RISCVUType: 1,
RISCVLoad: 3,
#RISCVLoad: 3,
RISCVInstruction.classes_by_names["lb"]: 3,
RISCVInstruction.classes_by_names["lbu"]: 3,
RISCVInstruction.classes_by_names["lh"]: 3,
RISCVInstruction.classes_by_names["lhu"]: 3,
RISCVInstruction.classes_by_names["lw"]: 2,
RISCVInstruction.classes_by_names["lwu"]: 2,
RISCVInstruction.classes_by_names["ld"]: 2,

RISCVStore: 1,
RISCVIntegerRegisterRegisterMul: 4 # not correct for div, rem
#RISCVIntegerRegisterRegisterMul: 4 # not correct for div, rem
RISCVInstruction.classes_by_names["mul"]: 3,
RISCVInstruction.classes_by_names["mulh"]: 4,
RISCVInstruction.classes_by_names["mulhsu"]: 4,
RISCVInstruction.classes_by_names["mulhu"]: 4,
RISCVInstruction.classes_by_names["div"]: 4,
RISCVInstruction.classes_by_names["divu"]: 4,
RISCVInstruction.classes_by_names["rem"]: 4,
RISCVInstruction.classes_by_names["remu"]: 4
}


Expand Down

0 comments on commit 65e1f17

Please sign in to comment.