- fixed Piso data loss

git-svn-id: http://moon:8086/svn/vhdl/trunk@1272 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2015-05-31 10:13:33 +00:00
parent fd05664b04
commit 4f08ade4e2
+6 -4
View File
@@ -62,7 +62,7 @@ begin
end process;
proc_fsm:
process(state, din_vld, pre_fin)
process(state, din_vld, shift_en, pre_fin)
begin
state_next <= state;
shift_reg_we <= '0';
@@ -78,10 +78,12 @@ begin
when shift =>
if pre_fin = '1' then
din_re <= din_vld;
if din_vld = '1' then
shift_reg_we <= '1';
state_next <= shift;
if shift_en = '1' then
din_re <= '1';
shift_reg_we <= '1';
state_next <= shift;
end if;
else
state_next <= idle;
end if;