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

Subversion Repositories dma_axi

[/] [dma_axi/] [trunk/] [src/] [dma_axi32/] [prgen_mux8.v] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 eyalhoc
//---------------------------------------------------------
2
//-- File generated by RobustVerilog parser
3
//-- Version: 1.0
4
//-- Invoked Fri Mar 25 23:34:52 2011
5
//--
6
//-- Source file: prgen_mux.v
7
//---------------------------------------------------------
8
 
9
 
10
 
11
 
12
module prgen_mux8(sel,ch_x,x);
13
 
14
   parameter                  WIDTH      = 8;
15
 
16
 
17
   input [3-1:0]     sel;
18
   input [8*WIDTH-1:0]     ch_x;
19
   output [WIDTH-1:0]           x;
20
 
21
 
22
   reg [WIDTH-1:0]              x;
23
 
24
 
25
   always @(/*AUTOSENSE*/ch_x or sel)
26
     begin
27
    case (sel)
28
      3'd0 :x = ch_x[WIDTH-1+WIDTH*0:WIDTH*0];
29
      3'd1 :x = ch_x[WIDTH-1+WIDTH*1:WIDTH*1];
30
      3'd2 :x = ch_x[WIDTH-1+WIDTH*2:WIDTH*2];
31
      3'd3 :x = ch_x[WIDTH-1+WIDTH*3:WIDTH*3];
32
      3'd4 :x = ch_x[WIDTH-1+WIDTH*4:WIDTH*4];
33
      3'd5 :x = ch_x[WIDTH-1+WIDTH*5:WIDTH*5];
34
      3'd6 :x = ch_x[WIDTH-1+WIDTH*6:WIDTH*6];
35
      3'd7 :x = ch_x[WIDTH-1+WIDTH*7:WIDTH*7];
36
 
37
      default :
38
        x = ch_x[WIDTH-1:0];
39
    endcase
40
     end
41
 
42
 
43
endmodule
44
 
45
 
46
 

powered by: WebSVN 2.1.0

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