Modeling the communication within the dSPACE hardware between the real-time processor and the FPGA.
In the FPGA model subsystem, open the dialog of the FPGA Setup block.
On the Interface tab, click Generate Processor Blocks for FPGA XDATA Blocks to generate all processor interface blocks.

A Simulink model opens including the generated Register Out processor interface block. The generated block is the counterpart to the Register In FPGA interface block.

Move the generated block to the Processor model subsystem.
Add a Simulink Signal Generator block to the processor model with the following settings:
Waveform parameter: square
Amplitude: 1,000
Frequency: 100
Units: Hertz
Connect the Signal Generator block with the Register Out processor interface block.
Press Ctrl+S to save the model.
You modeled the interface to the FPGA and added the signal generation to the processor model.

The dialogs of the interface blocks let you show the corresponding interface block in the other subsystem.
In the Processor model subsystem, open the dialog of the of the Register Out processor interface block. On the FPGA Block Connections page of the dialog, the dialog provides a link to the corresponding interface block in the FPGA model after you clicked the update button.
In the FPGA model subsystem, right-click on the Register In block and select dSPACE FPGA - Show Corresponding Block.
For the next step, refer to StepĀ 3: How to Simulate the Entire Model.