please refer to getting started with HDL Coder.
You model data path in Simulink. Clock bundle (clock, clockenable, reset) is inferred from Sample times / Rates in the model.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!