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

Subversion Repositories cop

[/] [cop/] [trunk/] [rtl/] [verilog/] [cop_wb_bus.v] - Diff between revs 2 and 8

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

Rev 2 Rev 8
Line 107... Line 107...
 
 
  // WISHBONE Read Data Mux
  // WISHBONE Read Data Mux
  always @*
  always @*
      case ({eight_bit_bus, wb_adr_i}) // synopsys parallel_case
      case ({eight_bit_bus, wb_adr_i}) // synopsys parallel_case
        // 8 bit Bus, 8 bit Granularity
        // 8 bit Bus, 8 bit Granularity
        4'b1_000: rd_data_mux <= read_regs[ 7: 0];  // 8 bit read address 0
        4'b1_000: rd_data_mux = read_regs[ 7: 0];  // 8 bit read address 0
        4'b1_001: rd_data_mux <= read_regs[15: 8];  // 8 bit read address 1
        4'b1_001: rd_data_mux = read_regs[15: 8];  // 8 bit read address 1
        4'b1_010: rd_data_mux <= read_regs[23:16];  // 8 bit read address 2
        4'b1_010: rd_data_mux = read_regs[23:16];  // 8 bit read address 2
        4'b1_011: rd_data_mux <= read_regs[31:24];  // 8 bit read address 3
        4'b1_011: rd_data_mux = read_regs[31:24];  // 8 bit read address 3
        4'b1_100: rd_data_mux <= read_regs[39:32];  // 8 bit read address 4
        4'b1_100: rd_data_mux = read_regs[39:32];  // 8 bit read address 4
        4'b1_101: rd_data_mux <= read_regs[47:40];  // 8 bit read address 5
        4'b1_101: rd_data_mux = read_regs[47:40];  // 8 bit read address 5
        // 16 bit Bus, 16 bit Granularity
        // 16 bit Bus, 16 bit Granularity
        4'b0_000: rd_data_mux <= read_regs[15: 0];  // 16 bit read access address 0
        4'b0_000: rd_data_mux = read_regs[15: 0];  // 16 bit read access address 0
        4'b0_001: rd_data_mux <= read_regs[31:16];
        4'b0_001: rd_data_mux = read_regs[31:16];
        4'b0_010: rd_data_mux <= read_regs[47:32];
        4'b0_010: rd_data_mux = read_regs[47:32];
      endcase
      endcase
 
 
  // generate wishbone write register strobes -- one hot if 8 bit bus
  // generate wishbone write register strobes -- one hot if 8 bit bus
  //                                             two hot if 16 bit bus
  //                                             two hot if 16 bit bus
  always @*
  always @*

powered by: WebSVN 2.1.0

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