O
Olalekan Shittu
Guest
Hello everyone.
I have been trying to write a VHDL architecture for the circuit below but doesn't seem to be making headway, can anyone be of help.
Below is my entity declaration from the system
Library ieee;
use IEEE.std_logic_1164.all;
entity Sorter IS
Port ( C: IN std_logic_vector (0 to 3);
Sel: IN STD_LOGIC_VECTOR(0 to 2);
out0: out std_logic;
out1: out std_logic;
out2: out std_logic;
out3: out std_logic
);
end sorter;
I am to write an architecture for the above with condition that:
When Sel equal 4, the resulting output as shown in the table below is generated
out0 out1 out2 out3
0 <= C < 4 1 0 0 0
4 <= C < 8 0 1 0 0
8 <= C < 12 0 0 1 0
12 <= C < 16 0 0 0 1
otherwise out0,out1,out2,out3 are all equal to zero.
Thanks
I have been trying to write a VHDL architecture for the circuit below but doesn't seem to be making headway, can anyone be of help.
Below is my entity declaration from the system
Library ieee;
use IEEE.std_logic_1164.all;
entity Sorter IS
Port ( C: IN std_logic_vector (0 to 3);
Sel: IN STD_LOGIC_VECTOR(0 to 2);
out0: out std_logic;
out1: out std_logic;
out2: out std_logic;
out3: out std_logic
);
end sorter;
I am to write an architecture for the above with condition that:
When Sel equal 4, the resulting output as shown in the table below is generated
out0 out1 out2 out3
0 <= C < 4 1 0 0 0
4 <= C < 8 0 1 0 0
8 <= C < 12 0 0 1 0
12 <= C < 16 0 0 0 1
otherwise out0,out1,out2,out3 are all equal to zero.
Thanks