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

Subversion Repositories wb2axi4

[/] [wb2axi4/] [trunk/] [rtl/] [ifaces/] [wishbone_if.sv] - Diff between revs 2 and 3

Show entire file | Details | Blame | View Log

Rev 2 Rev 3
Line 5... Line 5...
//             TGD : WID,
//             TGD : WID,
//             TGA : AWID| ARID,
//             TGA : AWID| ARID,
interface wishbone_if #(
interface wishbone_if #(
  WB_ADR_WIDTH = 32,
  WB_ADR_WIDTH = 32,
  WB_BTE_WIDTH = 2 ,
  WB_BTE_WIDTH = 2 ,
  WB_CIT_WIDTH = 3 ,
  WB_CTI_WIDTH = 3 ,
  WB_DAT_WIDTH = 32,
  WB_DAT_WIDTH = 32,
  WB_TGA_WIDTH = 8,
  WB_TGA_WIDTH = 8,
  WB_TGD_WIDTH = 8,
  WB_TGD_WIDTH = 8,
  WB_TGC_WIDTH = 4,
  WB_TGC_WIDTH = 4,
  WB_SEL_WIDTH = 4
  WB_SEL_WIDTH = 4
 
 
);
);
 
logic [WB_ADR_WIDTH -1 : 0] ADR;
 
logic [WB_TGA_WIDTH -1 :0 ] TGA;
logic [WB_DAT_WIDTH -1 : 0] DAT_I;
logic [WB_DAT_WIDTH -1 : 0] DAT_I;
logic [WB_DAT_WIDTH -1 : 0] DAT_O;
 
logic [WB_TGD_WIDTH -1 : 0] TGD_I;
logic [WB_TGD_WIDTH -1 : 0] TGD_I;
 
logic [WB_DAT_WIDTH -1 : 0] DAT_O;
logic [WB_TGD_WIDTH -1 : 0] TGD_O;
logic [WB_TGD_WIDTH -1 : 0] TGD_O;
logic                       ACK_I;
logic                       WE;
logic [WB_ADR_WIDTH -1 : 0] ADR_O;
logic [WB_SEL_WIDTH -1 : 0] SEL;
logic                       CYC_O;
logic                       STB;
logic                       ERR_I;
logic                       ACK;
logic                       LOCK_O;
logic                       CYC;
logic                       RTY_I;
logic                       ERR;
logic [WB_SEL_WIDTH -1 : 0] SEL_O;
logic                       LOCK;
logic                       STB_O;
logic [WB_BTE_WIDTH -1 :0 ] BTE;
logic [WB_TGA_WIDTH -1 :0 ] TGA_O;
logic                       RTY;
logic [WB_TGA_WIDTH -1 :0 ] TGC_O;
logic [WB_CTI_WIDTH -1 :0 ] CTI;
logic                       WE_O;
logic [WB_TGA_WIDTH -1 :0 ] TGC;
logic [WB_BTE_WIDTH -1 :0 ] BTE_O;
 
logic [WB_BTE_WIDTH -1 :0 ] BTE_I;
 
logic [WB_CTI_WIDTH -1 :0 ] CTI_O;
 
logic [WB_CTI_WIDTH -1 :0 ] CTI_I;
 
 
 
 
 
logic                       ACK_O;
 
logic [WB_ADR_WIDTH -1 : 0] ADR_I;
 
logic                       CYC_I;
 
logic                       ERR_O;
 
logic                       LOCK_I;
 
logic                       RTY_O;
 
logic [WB_SEL_WIDTH -1 : 0] SEL_I;
 
logic [WB_TGA_WIDTH -1 :0 ] TGA_I;
 
logic [WB_TGA_WIDTH -1 :0 ] TGC_I;
 
logic                       WE_I;
 
 
 
modport  master(
modport  master(
output ADR_O,
output ADR  ,
output TGA_O,
output TGA  ,
input  DAT_I,
input  DAT_I,
input  TGD_I,
input  TGD_I,
output DAT_O,
output DAT_O,
output TGD_O,
output TGD_O,
output WE_O,
output WE   ,
output SEL_O,
output SEL  ,
output STB_O,
output STB  ,
input  ACK_I,
input  ACK  ,
output CYC_O,
output CYC  ,
input  ERR_I,
input  ERR  ,
output LOCK_O,
output LOCK ,
output BTE_O,
output BTE  ,
input  RTY_I,
input  RTY  ,
output TGC_O
output CTI  ,
 
output TGC
);
);
 
 
modport  slave(
modport  slave(
output ADR_I,
input  ADR  ,
output TGA_I,
input  TGA  ,
input  DAT_I,
 
input  TGD_I,
 
output DAT_O,
output DAT_O,
output TGD_O,
output TGD_O,
output WE_I,
input  DAT_I,
output SEL_I,
input  TGD_I,
output STB_I,
input  WE   ,
input  ACK_O,
input  SEL  ,
output CYC_I,
input  STB  ,
input  ERR_O,
output ACK  ,
output LOCK_I,
input  CYC  ,
input  BTE_I,
output ERR  ,
input  RTY_O,
input  LOCK ,
output TGC_I
input  BTE  ,
 
output RTY  ,
 
input  CTI  ,
 
input  TGC
);
);
 
 
 
 
endinterface
endinterface

powered by: WebSVN 2.1.0

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