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

Subversion Repositories 8051

[/] [8051/] [trunk/] [rtl/] [verilog/] [oc8051_acc.v] - Diff between revs 153 and 179

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

Rev 153 Rev 179
Line 42... Line 42...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.13  2003/06/03 17:16:16  simont
 
// `ifdef added.
 
//
// Revision 1.12  2003/04/09 16:24:03  simont
// Revision 1.12  2003/04/09 16:24:03  simont
// change wr_sft to 2 bit wire.
// change wr_sft to 2 bit wire.
//
//
// Revision 1.11  2003/04/09 15:49:42  simont
// Revision 1.11  2003/04/09 15:49:42  simont
// Register oc8051_sfr dato output, add signal wait_data.
// Register oc8051_sfr dato output, add signal wait_data.
Line 103... Line 106...
  if (wr2_acc)
  if (wr2_acc)
    acc = data2_in;
    acc = data2_in;
  else if (wr_acc)
  else if (wr_acc)
    acc = data_in;
    acc = data_in;
  else if (wr_bit_acc)
  else if (wr_bit_acc)
    case (wr_addr[2:0])
    case (wr_addr[2:0]) /* synopsys full_case parallel_case */
      3'b000: acc = {data_out[7:1], bit_in};
      3'b000: acc = {data_out[7:1], bit_in};
      3'b001: acc = {data_out[7:2], bit_in, data_out[0]};
      3'b001: acc = {data_out[7:2], bit_in, data_out[0]};
      3'b010: acc = {data_out[7:3], bit_in, data_out[1:0]};
      3'b010: acc = {data_out[7:3], bit_in, data_out[1:0]};
      3'b011: acc = {data_out[7:4], bit_in, data_out[2:0]};
      3'b011: acc = {data_out[7:4], bit_in, data_out[2:0]};
      3'b100: acc = {data_out[7:5], bit_in, data_out[3:0]};
      3'b100: acc = {data_out[7:5], bit_in, data_out[3:0]};
      3'b101: acc = {data_out[7:6], bit_in, data_out[4:0]};
      3'b101: acc = {data_out[7:6], bit_in, data_out[4:0]};
      3'b110: acc = {data_out[7],   bit_in, data_out[5:0]};
      3'b110: acc = {data_out[7],   bit_in, data_out[5:0]};
      default: acc = {bit_in, data_out[6:0]};
      3'b111: acc = {bit_in, data_out[6:0]};
    endcase
    endcase
  else
  else
    acc = data_out;
    acc = data_out;
end
end
 
 

powered by: WebSVN 2.1.0

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