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

Subversion Repositories 8051

[/] [8051/] [trunk/] [rtl/] [verilog/] [oc8051_top.v] - Diff between revs 172 and 174

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

Rev 172 Rev 174
Line 42... Line 42...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.31  2003/06/17 14:17:22  simont
 
// BIST signals added.
 
//
// Revision 1.30  2003/06/03 16:51:24  simont
// Revision 1.30  2003/06/03 16:51:24  simont
// include "8051_defines" added.
// include "8051_defines" added.
//
//
// Revision 1.29  2003/05/07 12:36:03  simont
// Revision 1.29  2003/05/07 12:36:03  simont
// chsnge comp.des to des1
// chsnge comp.des to des1
Line 253... Line 256...
input   scanb_rst;
input   scanb_rst;
input   scanb_clk;
input   scanb_clk;
input   scanb_si;
input   scanb_si;
output  scanb_so;
output  scanb_so;
input   scanb_en;
input   scanb_en;
 
wire    scanb_soi;
`endif
`endif
 
 
wire [7:0]  dptr_hi,
wire [7:0]  dptr_hi,
            dptr_lo,
            dptr_lo,
            ri,
            ri,
Line 420... Line 424...
                               .bit_data_out(bit_data)
                               .bit_data_out(bit_data)
`ifdef OC8051_BIST
`ifdef OC8051_BIST
         ,
         ,
         .scanb_rst(scanb_rst),
         .scanb_rst(scanb_rst),
         .scanb_clk(scanb_clk),
         .scanb_clk(scanb_clk),
         .scanb_si(scanb_si),
         .scanb_si(scanb_soi),
         .scanb_so(scanb_so),
         .scanb_so(scanb_so),
         .scanb_en(scanb_en)
         .scanb_en(scanb_en)
`endif
`endif
                               );
                               );
 
 
Line 680... Line 684...
  // pins
  // pins
        .dat_i(wbi_dat_i),
        .dat_i(wbi_dat_i),
        .stb_o(wbi_stb_o),
        .stb_o(wbi_stb_o),
        .adr_o(wbi_adr_o),
        .adr_o(wbi_adr_o),
        .ack_i(wbi_ack_i),
        .ack_i(wbi_ack_i),
        .cyc_o(wbi_cyc_o));
        .cyc_o(wbi_cyc_o)
 
`ifdef OC8051_BIST
 
         ,
 
         .scanb_rst(scanb_rst),
 
         .scanb_clk(scanb_clk),
 
         .scanb_si(scanb_si),
 
         .scanb_so(scanb_soi),
 
         .scanb_en(scanb_en)
 
`endif
 
        );
 
 
  defparam oc8051_icache1.ADR_WIDTH = 6;  // cache address wihth
  defparam oc8051_icache1.ADR_WIDTH = 6;  // cache address wihth
  defparam oc8051_icache1.LINE_WIDTH = 2; // line address width (2 => 4x32)
  defparam oc8051_icache1.LINE_WIDTH = 2; // line address width (2 => 4x32)
  defparam oc8051_icache1.BL_NUM = 15; // number of blocks (2^BL_WIDTH-1); BL_WIDTH = ADR_WIDTH - LINE_WIDTH
  defparam oc8051_icache1.BL_NUM = 15; // number of blocks (2^BL_WIDTH-1); BL_WIDTH = ADR_WIDTH - LINE_WIDTH
  defparam oc8051_icache1.CACHE_RAM = 64; // cache ram x 32 (2^ADR_WIDTH)
  defparam oc8051_icache1.CACHE_RAM = 64; // cache ram x 32 (2^ADR_WIDTH)
 
 
 
 
 
 
 
        `ifdef OC8051_SIMULATION
 
          initial
 
            $display("   Instruction cache enabled");
 
 
 
 
 
        `endif
 
 
 
 
//
//
//    no cache
//    no cache
//
//
`else
`else
 
 
 
  `ifdef OC8051_BIST
 
       assign scanb_soi=scanb_si;
 
  `endif
 
 
  `ifdef OC8051_WB
  `ifdef OC8051_WB
 
 
    oc8051_wb_iinterface oc8051_wb_iinterface(.rst(wb_rst_i), .clk(wb_clk_i),
    oc8051_wb_iinterface oc8051_wb_iinterface(.rst(wb_rst_i), .clk(wb_clk_i),
    // cpu
    // cpu
        .adr_i(iadr_o),
        .adr_i(iadr_o),
Line 708... Line 735...
        .stb_o(wbi_stb_o),
        .stb_o(wbi_stb_o),
        .adr_o(wbi_adr_o),
        .adr_o(wbi_adr_o),
        .ack_i(wbi_ack_i),
        .ack_i(wbi_ack_i),
        .cyc_o(wbi_cyc_o));
        .cyc_o(wbi_cyc_o));
 
 
 
        `ifdef OC8051_SIMULATION
 
          initial
 
            $display("   Wishbone instruction interface enabled");
 
 
 
 
 
        `endif
 
 
  `else
  `else
 
 
    assign wbi_adr_o = iadr_o    ;
    assign wbi_adr_o = iadr_o    ;
    assign idat_i    = wbi_dat_i ;
    assign idat_i    = wbi_dat_i ;
    assign wbi_stb_o = 1'b1      ;
    assign wbi_stb_o = 1'b1      ;
    assign iack_i    = wbi_ack_i ;
    assign iack_i    = wbi_ack_i ;
    assign wbi_cyc_o = 1'b1      ;
    assign wbi_cyc_o = 1'b1      ;
 
 
 
    `ifdef OC8051_SIMULATION
 
      initial
 
        $display("   Pipelined instruction interface enabled");
 
 
 
    `endif
 
 
 
 
  `endif
  `endif
 
 
`endif
`endif
 
 
 
 

powered by: WebSVN 2.1.0

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