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

Subversion Repositories modular_oscilloscope

[/] [modular_oscilloscope/] [trunk/] [hdl/] [epp/] [eppwbn_ctrl.vhd] - Diff between revs 19 and 22

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

Rev 19 Rev 22
Line 85... Line 85...
  -- almacenamiento de Extensibility Request Value (asíncrono)
  -- almacenamiento de Extensibility Request Value (asíncrono)
  P_data_store: process(nStrobe, present_state, Data, RST_I, nInit, nSelectIn)
  P_data_store: process(nStrobe, present_state, Data, RST_I, nInit, nSelectIn)
  begin
  begin
    if (RST_I = '1' or (nInit = '0' and nSelectIn = '0')) then
    if (RST_I = '1' or (nInit = '0' and nSelectIn = '0')) then
      ext_req_val <= (others => '0');
      ext_req_val <= (others => '0');
    elsif (present_state = st_negotiation2 and nStrobe = '0') then
    elsif (nStrobe = '0') and present_state = st_negotiation2 then
      ext_req_val <= Data;
      ext_req_val <= Data;
 
    else
 
      ext_req_val <= ext_req_val;
    end if;
    end if;
  end process P_data_store;
  end process P_data_store;
 
 
  ----------------------------------------------------------------------------------------
  ----------------------------------------------------------------------------------------
  -- estado siguiente
  -- estado siguiente
Line 186... Line 188...
 
 
 
 
 
 
  ----------------------------------------------------------------------------------------
  ----------------------------------------------------------------------------------------
  -- estado actual
  -- estado actual
  P_state_clocked: process(CLK_I, nInit, nSelectIn,RST_I) begin
  P_state_clocked: process(CLK_I, nInit, nSelectIn) begin
    -- if (nInit = '0' and nSelectIn = '0') or RST_I = '1' then
    -- if (nInit = '0' and nSelectIn = '0') or RST_I = '1' then
      -- present_state <= st_compatibility_idle;
      -- present_state <= st_compatibility_idle;
    -- elsif present_state = st_epp_mode and nInit = '0' then
    -- elsif present_state = st_epp_mode and nInit = '0' then
      -- present_state <= st_compatibility_idle;
      -- present_state <= st_compatibility_idle;
    -- elsif (CLK_I'event and CLK_I='1') then
    -- elsif (CLK_I'event and CLK_I='1') then
      -- present_state <= next_state;
      -- present_state <= next_state;
    -- end if;  
    -- end if;  
 
 
 
 
    if (nInit = '0' and nSelectIn = '0') or RST_I = '1' then
    if (nInit = '0' and nSelectIn = '0') then
      present_state <= st_compatibility_idle;
      present_state <= st_compatibility_idle;
    elsif (CLK_I'event and CLK_I='1') then
    elsif (CLK_I'event and CLK_I='1') then
      present_state <= next_state;
      present_state <= next_state;
    end if;
    end if;
  end process P_state_clocked;
  end process P_state_clocked;

powered by: WebSVN 2.1.0

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