Question:

Program for 3:8 decoder using VHDL Data flow modeling.

Posted by Saradwata Bandyopadhyay on 01-03-2025

Tags : 3:8 decoder Model Sim program VHDL

Answer:

Here is the solution for the above question =>

                                      library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity decoder_3_8 is
Port ( S : in STD_LOGIC_VECTOR (2 downto 0);
Q : out STD_LOGIC_VECTOR (7 downto 0));
end decoder_3_8;
architecture dataflow of decoder_3_8 is
begin
Q <="00000001" when S="000" else
    "00000010" when S="001" else
    "00000100" when S="010" else
    "00001000" when S="011" else
    "00010000" when S="100" else
    "00100000" when S="101" else
    "01000000" when S="110" else
    "10000000";
end dataflow;

You can directly download the Source Code and the Model Sim application from the links below =>

Add a Comment

Please Login to Comment.