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

Subversion Repositories 8051

[/] [8051/] [trunk/] [rtl/] [verilog/] [oc8051_alu_src_sel.v] - Diff between revs 151 and 179

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

Rev 151 Rev 179
Line 42... Line 42...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.3  2003/06/03 17:13:57  simont
 
// remove pc_r register.
 
//
// Revision 1.2  2003/05/06 09:41:35  simont
// Revision 1.2  2003/05/06 09:41:35  simont
// remove define OC8051_AS2_PCL, chane signal src_sel2 to 2 bit wide.
// remove define OC8051_AS2_PCL, chane signal src_sel2 to 2 bit wide.
//
//
// Revision 1.1  2003/01/13 14:13:12  simont
// Revision 1.1  2003/01/13 14:13:12  simont
// initial import
// initial import
Line 89... Line 92...
// src1
// src1
//
//
///////
///////
always @(sel1 or op1_r or op2_r or op3_r or pc or acc or ram)
always @(sel1 or op1_r or op2_r or op3_r or pc or acc or ram)
begin
begin
  case (sel1)
  case (sel1) /* synopsys full_case parallel_case */
    `OC8051_AS1_RAM: src1 = ram;
    `OC8051_AS1_RAM: src1 = ram;
    `OC8051_AS1_ACC: src1 = acc;
    `OC8051_AS1_ACC: src1 = acc;
    `OC8051_AS1_OP1: src1 = op1_r;
    `OC8051_AS1_OP1: src1 = op1_r;
    `OC8051_AS1_OP2: src1 = op2_r;
    `OC8051_AS1_OP2: src1 = op2_r;
    `OC8051_AS1_OP3: src1 = op3_r;
    `OC8051_AS1_OP3: src1 = op3_r;
    `OC8051_AS1_PCH: src1 = pc[15:8];
    `OC8051_AS1_PCH: src1 = pc[15:8];
    `OC8051_AS1_PCL: src1 = pc[7:0];
    `OC8051_AS1_PCL: src1 = pc[7:0];
    default: src1 = 8'h00;
//    default: src1 = 8'h00;
  endcase
  endcase
end
end
 
 
///////
///////
//
//
// src2
// src2
//
//
///////
///////
always @(sel2 or op2_r or acc or ram or op1_r)
always @(sel2 or op2_r or acc or ram or op1_r)
begin
begin
  case (sel2)
  case (sel2) /* synopsys full_case parallel_case */
    `OC8051_AS2_ACC: src2= acc;
    `OC8051_AS2_ACC: src2= acc;
    `OC8051_AS2_ZERO: src2= 8'h00;
    `OC8051_AS2_ZERO: src2= 8'h00;
    `OC8051_AS2_RAM: src2= ram;
    `OC8051_AS2_RAM: src2= ram;
    `OC8051_AS2_OP2: src2= op2_r;
    `OC8051_AS2_OP2: src2= op2_r;
    default: src2= 8'h00;
//    default: src2= 8'h00;
  endcase
  endcase
end
end
 
 
///////
///////
//
//
Line 125... Line 128...
//
//
///////
///////
 
 
always @(sel3 or pc[15:8] or dptr[15:8] or op1_r)
always @(sel3 or pc[15:8] or dptr[15:8] or op1_r)
begin
begin
  case (sel3)
  case (sel3) /* synopsys full_case parallel_case */
    `OC8051_AS3_DP:   src3= dptr[15:8];
    `OC8051_AS3_DP:   src3= dptr[15:8];
    `OC8051_AS3_PC:   src3= pc[15:8];
    `OC8051_AS3_PC:   src3= pc[15:8];
    default: src3= 16'h0;
//    default: src3= 16'h0;
  endcase
  endcase
end
end
 
 
 
 
always @(posedge clk or posedge rst)
always @(posedge clk or posedge rst)

powered by: WebSVN 2.1.0

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