Methods, uses, medicaments, and unit doses for treating viral diseases are described herein. The methods, uses, medicaments, and unit doses include (a) substituted piperidine and piperazine carboxamides, or a pharmaceutically acceptable salt thereof and (b) one or more pharmaceutically acceptable carriers, excipients or diluents, or combinations thereof. Viral diseases include hepatitis C virus, HIV, BVDV, and Coronavirus infections.