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

Subversion Repositories csa

[/] [csa/] [trunk/] [rtl/] [sbox5.v] - Blame information for rev 40

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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