This application relates to novel compounds of formula I (and their pharmaceutically acceptable salts), as defined herein, processes and intermediates for their preparation, pharmaceutical formulations comprising the novel compounds of formula I, and the use of the compounds of formula I as thrombin inhibitors.