URL
https://opencores.org/ocsvn/8051/8051/trunk
[/] [8051/] [trunk/] [rtl/] [verilog/] [oc8051_sfr.v] - Diff between revs 132 and 134
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 132 |
Rev 134 |
Line 42... |
Line 42... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.11 2003/04/25 17:15:51 simont
|
|
// change branch instruction execution (reduse needed clock periods).
|
|
//
|
// Revision 1.10 2003/04/10 12:43:19 simont
|
// Revision 1.10 2003/04/10 12:43:19 simont
|
// defines for pherypherals added
|
// defines for pherypherals added
|
//
|
//
|
// Revision 1.9 2003/04/09 16:24:03 simont
|
// Revision 1.9 2003/04/09 16:24:03 simont
|
// change wr_sft to 2 bit wire.
|
// change wr_sft to 2 bit wire.
|
Line 560... |
Line 563... |
dat0 <= #1 dat1;
|
dat0 <= #1 dat1;
|
wait_data <= #1 1'b0;
|
wait_data <= #1 1'b0;
|
end else if (
|
end else if (
|
(((wr_sfr==`OC8051_WRS_ACC1) & (adr0==`OC8051_SFR_ACC)) | //write to acc
|
(((wr_sfr==`OC8051_WRS_ACC1) & (adr0==`OC8051_SFR_ACC)) | //write to acc
|
((wr_sfr==`OC8051_WRS_DPTR) & (adr0==`OC8051_SFR_DPTR_LO)) | //write to dpl
|
((wr_sfr==`OC8051_WRS_DPTR) & (adr0==`OC8051_SFR_DPTR_LO)) | //write to dpl
|
(adr1[7] & (adr1==adr0) & we & !wr_bit_r)) & !wait_data) begin //write and read same address
|
(adr1[7] & (adr1==adr0) & we & !wr_bit_r) | //write and read same address
|
|
(adr1[7] & (adr1[7:3]==adr0[7:3]) & (~&adr0[2:0]) & we & wr_bit_r) //write bit addressable to read address
|
|
) & !wait_data) begin
|
wait_data <= #1 1'b1;
|
wait_data <= #1 1'b1;
|
|
|
end else if ((
|
end else if ((
|
((|psw_set) & (adr0==`OC8051_SFR_PSW)) |
|
((|psw_set) & (adr0==`OC8051_SFR_PSW)) |
|
((wr_sfr==`OC8051_WRS_ACC2) & (adr0==`OC8051_SFR_ACC)) | //write to acc
|
((wr_sfr==`OC8051_WRS_ACC2) & (adr0==`OC8051_SFR_ACC)) | //write to acc
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.