URL
https://opencores.org/ocsvn/8051/8051/trunk
[/] [8051/] [trunk/] [rtl/] [verilog/] [oc8051_wb_iinterface.v] - Diff between revs 136 and 138
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 136 |
Rev 138 |
Line 42... |
Line 42... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.5 2003/05/05 10:34:27 simont
|
|
// registering outputs.
|
|
//
|
// Revision 1.4 2003/04/16 10:02:45 simont
|
// Revision 1.4 2003/04/16 10:02:45 simont
|
// fix bug (cyc_o and stb_o)
|
// fix bug (cyc_o and stb_o)
|
//
|
//
|
// Revision 1.3 2003/04/03 19:19:02 simont
|
// Revision 1.3 2003/04/03 19:19:02 simont
|
// change adr_i and adr_o length.
|
// change adr_i and adr_o length.
|
Line 116... |
Line 119... |
always @(posedge clk or posedge rst)
|
always @(posedge clk or posedge rst)
|
if (rst) begin
|
if (rst) begin
|
stb_o <= #1 1'b0;
|
stb_o <= #1 1'b0;
|
adr_o <= #1 16'h0000;
|
adr_o <= #1 16'h0000;
|
end else if (ack_i) begin
|
end else if (ack_i) begin
|
stb_o <= #1 1'b0;
|
stb_o <= #1 stb_i;
|
|
adr_o <= #1 adr_i;
|
end else if (!stb_o & stb_i) begin
|
end else if (!stb_o & stb_i) begin
|
stb_o <= #1 1'b1;
|
stb_o <= #1 1'b1;
|
adr_o <= #1 adr_i;
|
adr_o <= #1 adr_i;
|
end
|
end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.