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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [soc/] [aceusb/] [rtl/] [aceusb.v] - Diff between revs 52 and 53

Show entire file | Details | Blame | View Log

Rev 52 Rev 53
Line 109... Line 109...
  .flago(access_ack)
  .flago(access_ack)
);
);
 
 
/* Main FSM */
/* Main FSM */
 
 
reg [1:0] state;
reg  state;
reg [1:0] next_state;
reg  next_state;
 
 
localparam
localparam
  IDLE = 2'd0,
  IDLE = 1'd0,
  WAIT = 2'd1,
  WAIT = 1'd1;
  ACK  = 2'd2;
 
 
 
  assign op = wb_cyc_i & wb_stb_i;
  assign op = wb_cyc_i & wb_stb_i;
 
 
always @(posedge wb_clk_i) begin
always @(posedge wb_clk_i) begin
  if(wb_rst_i)
  if(wb_rst_i)
Line 152... Line 151...
      if(access_ack) begin
      if(access_ack) begin
        wb_ack_o = 1'b1;
        wb_ack_o = 1'b1;
        access_write = 1'b0;
        access_write = 1'b0;
        load_adr_dat = 1'b0;
        load_adr_dat = 1'b0;
        access_read = 1'b0;
        access_read = 1'b0;
        next_state = ACK;
 
      end
 
    end
 
 
 
    ACK: begin
 
      if(!op) begin
 
        wb_ack_o = 1'b0;
 
        next_state = IDLE;
        next_state = IDLE;
      end
      end
    end
    end
  endcase
  endcase
end
end

powered by: WebSVN 2.1.0

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