add peripherals
[shakti-peripherals.git] / src / peripherals / vme / vme_defines.bsv
1
2
3 package vme_defines;
4
5
6 typedef struct
7 {
8 Bit #(32) addr;
9 Bit #(32) wr_data;
10 Bit #(2) mode;
11 Bit #(3) fun_code;
12 Bit #(1) rd_req;//HIGH FOR READ,LOW FOR WRITE
13 }Req_vme deriving (Bits,Eq);//Request from cpu
14
15 typedef struct
16
17 {
18
19 Bit#(2) port_type;
20 Bit#(32) data;
21 Bit#(1)berr ; //r0 for bus_error 1 for no error
22 }Resp_vme deriving (Bits,Eq);//Response to cpu
23
24
25
26
27
28
29 endpackage