This example is the second of a series of 3. If you didn't yet, please read the Block diagram example first.
With a block diagram that complies with the 10 rules (see the Block diagram example), the VHDL coding becomes straightforward:
the large surrounding rectangle becomes the VHDL entity,...