Several VHDL code examples are listed below. Each example includes the source code and simulation waveform. Also, at the footer of each example, you can find a link to download both the model source and testbench files.
Binary to seven-segment decoder