mjvm171
Newbie level 5
Hello
I just to ask if my shift register code below is correct because the output that we get lacks one more shift..
example:
we need a data that looks like this 11111111 but the output we get is 01111111
Assistance is really appreciated
Thank you:grin:
I just to ask if my shift register code below is correct because the output that we get lacks one more shift..
example:
we need a data that looks like this 11111111 but the output we get is 01111111
Code:
begin
if (clk'event and clk = '1') then
if (TDRE = '1') then
dr <=iempty;
dr <= Din;
end if;
if (RDRF ='1') then
dr<=sr;
Dout <= dr;
end if;
if (load = '1') then
sr <= dr;
elsif (shift = '1') then
sr <= (sr(6 downto 0) & core_rcve); --last rcved bit :research
end if;
end if;
Assistance is really appreciated
Thank you:grin: