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

Subversion Repositories spacewire

[/] [spacewire/] [branches/] [ref/] [rtl/] [WB_COMI_HOCI.v] - Blame information for rev 4

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 btltz
//File name=Module name=COMI_HOCI   2005-3-18      btltz@mail.china.com      btltz from CASIC,China  
2
//Description:   SpaceWire WISHBONE interface for communication mem(COMI) and Host control(HOCI)    
3
//Origin:        WISHBONE Specification Revision B.3, SpaceWire Std - Draft-1 of ESTEC,ESA
4
//--     TODO:
5
////////////////////////////////////////////////////////////////////////////////////
6
//
7
/*synthesis translate off*/
8
`timescale 1ns/100ps
9
/*synthesis translate on */
10
 
11
module WB_COMI_HOCI #(parameter CM_AW=16,CM_DW=32,H_DW=32,H_AW=8,BUF_DW=8)
12
                 ( // COMI interface(WISHBONE MASTER interface)to a "communication memory",a dpRAM
13
                                            output  [CM_DW-1:0] CM_DAT_o, //because some FPGA and ASIC devices do not support bi-directional signals so have not use "inout" 
14
                   input  [CM_DW-1:0] CM_DAT_i,
15
                                                 output CM_SEL0_o,
16
                                                 output CM_SEL1_o,
17
                                                 output CM_WE_o,
18
                                                 output CM_STB_o,
19
                                                 output [CM_AW-1:0] CM_ADR_o,
20
                                                 input CM_ACK_i,                //note that memory circuit does not have a reset input.                                                                          
21
                                                 // HOCI interface(WISHBONE SLAVE interface) to host such as a uP
22
                                                 output [H_DW-1:0] H_DAT_o,
23
                                                 input [H_DW-1:0] H_DAT_i,
24
                                                 input H_WE_i,
25
                                                 input H_SEL_i,
26
                                                 input H_STB_i,
27
                                                 output H_ACK_o,
28
                                                 input H_CYC_i,
29
                                                 input [H_AW-1:0] H_ADR_i,
30
 
31
                                                 output H_INT_o, //TAG. interrupt request line
32
 
33
// interface to 3 channels( CODEC + Glue Logic ) 
34
                   output wr_txbuf_o,
35
                                                 output [BUF_DW-1:0] txbuf_data_o,
36
                                                 input txbuf_full_i,
37
 
38
                                                 output rd_rxbuf_o,
39
                                                 input [BUF_DW-1:0] rxbuf_data_i,
40
                                                 input rxbuf_empty_i,
41
// global input signals
42
                   input RST_i, CLK_i
43
                                                 );
44
 
45
///////////////////////////////////////////////////////////////////////////////////////////////////////////
46
//WISHBONE memory interface form "COMI"( COmmunication Memory Interface ).
47
//The mem may be a dpMEM which could be considered as "FASM":FPGA and ASIC Subset Model(asynchronous read).
48
//
49
 
50
 
51
 
52
//COMI autonomous accesses to the communication memory or       read data to be transmitted 
53
 
54
 
55
 
56
endmodule

powered by: WebSVN 2.1.0

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