build/sim: improve timebase calculation (strict checks) and update modules