- fixed Piso data loss
git-svn-id: http://moon:8086/svn/vhdl/trunk@1272 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -62,7 +62,7 @@ begin
|
|||||||
end process;
|
end process;
|
||||||
|
|
||||||
proc_fsm:
|
proc_fsm:
|
||||||
process(state, din_vld, pre_fin)
|
process(state, din_vld, shift_en, pre_fin)
|
||||||
begin
|
begin
|
||||||
state_next <= state;
|
state_next <= state;
|
||||||
shift_reg_we <= '0';
|
shift_reg_we <= '0';
|
||||||
@@ -78,10 +78,12 @@ begin
|
|||||||
|
|
||||||
when shift =>
|
when shift =>
|
||||||
if pre_fin = '1' then
|
if pre_fin = '1' then
|
||||||
din_re <= din_vld;
|
|
||||||
if din_vld = '1' then
|
if din_vld = '1' then
|
||||||
shift_reg_we <= '1';
|
if shift_en = '1' then
|
||||||
state_next <= shift;
|
din_re <= '1';
|
||||||
|
shift_reg_we <= '1';
|
||||||
|
state_next <= shift;
|
||||||
|
end if;
|
||||||
else
|
else
|
||||||
state_next <= idle;
|
state_next <= idle;
|
||||||
end if;
|
end if;
|
||||||
|
|||||||
Reference in New Issue
Block a user