Y.T_comp
Newbie level 6
HI all ! I have new question :-D,
if I have a synchronised shifter module in VHDL have en,shr,shl,load,Din and Dout as ports :
my question is why we didn't deal with output instead of using shift value .(just for delay problem?)
why i can't say for example :
please explain this to me ! thanks .
best regards .
if I have a synchronised shifter module in VHDL have en,shr,shl,load,Din and Dout as ports :
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 entity shifter is port(en:IN bit,Din : IN bit_vector(3 downto 0),load,shr,shl:IN bit;Dout : out bit_vector(3 downto 0)) ; end shifter; architecture arc of shifter signal shift_val : bit_vector(3 downto 0); begin process(shr,shl,load,en) begin if(en='1' and load='1') then shift_val<=Din; elsif (en='1' and shr='1') then shift_val(2 downto 0)<=Dout(3 downto 1); shit_val(3)<=0; else shift_val(3 downto 1)<=Dout(2 downto 0); shit_val(0)<=0; endif; end process; precess begin if(clk='1' and clk'event ) Dout<=shift_val; end arc;
my question is why we didn't deal with output instead of using shift value .(just for delay problem?)
why i can't say for example :
Code VHDL - [expand] 1 2 Dout(3 downto 1)<=Dout(2 downto 0); Dout(0)<=0;
please explain this to me ! thanks .
best regards .