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

Subversion Repositories 8051

[/] [8051/] [tags/] [rel_12/] [rtl/] [verilog/] [oc8051_wb_iinterface.v] - Diff between revs 73 and 82

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 73 Rev 82
Line 42... Line 42...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.1  2002/10/28 16:42:08  simont
 
// initial import
 
//
//
//
//
//
 
 
// synopsys translate_off
// synopsys translate_off
`include "oc8051_timescale.v"
`include "oc8051_timescale.v"
Line 66... Line 69...
// dat_o    (out) data output
// dat_o    (out) data output
// stb_i    (in)  strobe
// stb_i    (in)  strobe
// ack_o    (out) acknowledge
// ack_o    (out) acknowledge
// cyc_i    (in)  cycle
// cyc_i    (in)  cycle
input stb_i, cyc_i;
input stb_i, cyc_i;
input [15:0] adr_i;
input [22:0] adr_i;
output ack_o;
output ack_o;
output [31:0] dat_o;
output [31:0] dat_o;
 
 
//
//
// interface to instruction rom
// interface to instruction rom
Line 81... Line 84...
// ack_i    (in) acknowledge
// ack_i    (in) acknowledge
// cyc_o    (out)  cycle
// cyc_o    (out)  cycle
input ack_i;
input ack_i;
input [31:0] dat_i;
input [31:0] dat_i;
output stb_o, cyc_o;
output stb_o, cyc_o;
output [15:0] adr_o;
output [22:0] adr_o;
 
 
//
//
// internal bufers and wires
// internal bufers and wires
//
//
reg [15:0] adr;
reg [22:0] adr;
reg stb;
reg stb;
 
 
assign ack_o = ack_i;
assign ack_o = ack_i;
assign dat_o = dat_i;
assign dat_o = dat_i;
assign stb_o = stb_i || ack_i;
assign stb_o = stb || ack_i;
assign cyc_o = stb_o;
assign cyc_o = stb;
assign adr_o = ack_i ? adr : adr_i;
assign adr_o = ack_i ? adr : adr_i;
 
 
always @(posedge clk or posedge rst)
always @(posedge clk or posedge rst)
  if (rst) begin
  if (rst) begin
    stb <= #1 1'b0;
    stb <= #1 1'b0;

powered by: WebSVN 2.1.0

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