Fix tb_system and output the system clock for testing and debuging