In any case in which they are imposed, costs and restitution are a portion of the punishment.
SDCL 23A-27-25.2