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

Subversion Repositories wb_verilog

[/] [wb_verilog/] [trunk/] [WBOPRT08.v] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 wwashingto
//                              -*- Mode: Verilog -*-
2
// Filename        : WBOPRT08.v
3
// Description     : Wishbone Slave 8-bit Behavorial
4
// Author          : Winefred Washington based on Silicore VHDL model in WISHBONE spec
5
// Created On      : Thu Jan 11 21:18:41 2001
6
// Last Modified By: .
7
// Last Modified On: .
8
// Update Count    : 0
9
// Status          : Unknown, Use with caution!
10
 
11
//        Description                   Specification
12
// General Description:            8-bit SLAVE output port
13
// Supported cycles:               SLAVE, READ/WRITE
14
//                                 SLAVE, BLOCK READ/WRITE
15
//                                 SLAVE, RMW
16
// Data port, size:                8-bit
17
// Data port, granularity          8-bit
18
// Data port, Max. operand size    8-bit
19
// Data transfer ordering:         Big endian and/or little endian
20
// Data transfer sequencing:       undefined
21
//
22
 
23
 
24
module WBOPRT08(ACK_O, CLK_I, DAT_I, DAT_O, RST_I, STB_I, WE_I, PRT_O);
25
   output               ACK_O;
26
   input                CLK_I;
27
   input [7:0]           DAT_I;
28
   output [7:0]  DAT_O;
29
   input                RST_I;
30
   input                STB_I;
31
   input                WE_I;
32
   output [7:0]  PRT_O;
33
 
34
   wire                 ACK_O;
35
   wire [7:0]            DAT_O;
36
   wire [7:0]            PRT_O;
37
   reg [7:0]             Q;
38
 
39
   assign               ACK_O = STB_I;
40
   assign               DAT_O = Q;
41
   assign               PRT_O = Q;
42
 
43
   always @(posedge CLK_I)
44
     begin
45
        if (RST_I)
46
          Q <= 8'b0000_0000;
47
        else if (STB_I & WE_I)
48
          Q <= DAT_I;
49
     end
50
 
51
endmodule

powered by: WebSVN 2.1.0

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