Adding defines and code to build the top simulation.