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

Subversion Repositories csa

[/] [csa/] [trunk/] [rtl/] [sbox6.v] - Blame information for rev 38

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

Line No. Rev Author Line
1 20 simon111
module sbox6(in,out);
2
input [4:0]in;
3
output [1:0]out;
4
reg [1:0]out;
5
 
6
always @(in)
7
        case (in)          // synthesis full_case
8
        5'h00:out=2'h0;
9
        5'h01:out=2'h1;
10
        5'h02:out=2'h2;
11
        5'h03:out=2'h3;
12
        5'h04:out=2'h1;
13
        5'h05:out=2'h2;
14
        5'h06:out=2'h2;
15
        5'h07:out=2'h0;
16
        5'h08:out=2'h0;
17
        5'h09:out=2'h1;
18
        5'h0a:out=2'h3;
19
        5'h0b:out=2'h0;
20
        5'h0c:out=2'h2;
21
        5'h0d:out=2'h3;
22
        5'h0e:out=2'h1;
23
        5'h0f:out=2'h3;
24
        5'h10:out=2'h2;
25
        5'h11:out=2'h3;
26
        5'h12:out=2'h0;
27
        5'h13:out=2'h2;
28
        5'h14:out=2'h3;
29
        5'h15:out=2'h0;
30
        5'h16:out=2'h1;
31
        5'h17:out=2'h1;
32
        5'h18:out=2'h2;
33
        5'h19:out=2'h1;
34
        5'h1a:out=2'h1;
35
        5'h1b:out=2'h2;
36
        5'h1c:out=2'h0;
37
        5'h1d:out=2'h3;
38
        5'h1e:out=2'h3;
39
        5'h1f:out=2'h0;
40
        endcase
41
endmodule

powered by: WebSVN 2.1.0

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