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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Projects/] [opencores.org/] [wishbone/] [ip/] [model/] [rtl/] [verilog/] [syn/] [model_slave.v] - Blame information for rev 131

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jt_eaton
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  wb_slave_model                                              ////
4
////                                                              ////
5
 
6
module model_slave
7
#( parameter dwidth = 32,
8
   parameter awidth = 32
9
 )(
10
  input wire                  clk,
11
  input wire                  reset,
12
 
13
  input  wire [awidth   -1:0]  adr,
14
  input  wire [dwidth   -1:0]  dout,
15
  input  wire                  cyc,
16
  input  wire                  stb,
17
  input  wire                  we,
18
  input  wire [dwidth/8 -1:0]  sel,
19
 
20
  output  reg [dwidth   -1:0] din,
21
  output  reg                 ack,
22
  output  reg                 err,
23
  output  reg                 rty
24
);
25
 
26
 
27
 
28
 
29
 
30
 
31
 
32
always@(posedge clk)
33
  if(reset)
34
    begin
35
    din <= {dwidth{1'b0}};
36
    ack <= (cyc && stb);
37
    err <= 1'b0;
38
    rty <= 1'b0;
39
    end
40
 
41
 
42
 
43
endmodule

powered by: WebSVN 2.1.0

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