Port Defination in STM32F100RDTxx

Actually i want to run 7 segment in STM32F100RDTxx  which requried to 8 pin port so i dont how to define port .

I also used software STM32CubeMx(selecting the pins) and used keil v5 for programming.

i m new to this so please help me out