OpenCores
URL https://opencores.org/ocsvn/spacewire_light/spacewire_light/trunk

Subversion Repositories spacewire_light

[/] [spacewire_light/] [trunk/] [rtl/] [vhdl/] [spwlink.vhd] - Diff between revs 2 and 4

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 4
Line 110... Line 110...
 
 
            when S_ErrorWait =>
            when S_ErrorWait =>
                -- Wait for 2 timer periods.
                -- Wait for 2 timer periods.
                if ((recvo.errdisc or recvo.errpar or recvo.erresc) = '1') or
                if ((recvo.errdisc or recvo.errpar or recvo.erresc) = '1') or
                   ((recvo.gotfct or recvo.tick_out or recvo.rxchar) = '1') then
                   ((recvo.gotfct or recvo.tick_out or recvo.rxchar) = '1') then
 
                    -- Note: spwrecv will never issue errpar, erresc, gotfct,
 
                    -- tick_out or rxchar before the first NULL has been seen.
 
                    -- Therefore it's ok here to bail on those conditions
 
                    -- without explicitly testing got_null.
                    v.state     := S_ErrorReset;    -- error, go back to reset
                    v.state     := S_ErrorReset;    -- error, go back to reset
                    v_timerrst  := '1';
                    v_timerrst  := '1';
                elsif r.timercnt = 0 then
                elsif r.timercnt = 0 then
                    if r.timerdone = '1' then
                    if r.timerdone = '1' then
                        v.state     := S_Ready;
                        v.state     := S_Ready;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.