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

Subversion Repositories csa

[/] [csa/] [trunk/] [rtl/] [sbox7.v] - Blame information for rev 47

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

Line No. Rev Author Line
1 40 simon111
`include "../bench/timescale.v"
2 20 simon111
module sbox7(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'h0;
10
        5'h01:out=2'h3;
11
        5'h02:out=2'h2;
12
        5'h03:out=2'h2;
13
        5'h04:out=2'h3;
14
        5'h05:out=2'h0;
15
        5'h06:out=2'h0;
16
        5'h07:out=2'h1;
17
        5'h08:out=2'h3;
18
        5'h09:out=2'h0;
19
        5'h0a:out=2'h1;
20
        5'h0b:out=2'h3;
21
        5'h0c:out=2'h1;
22
        5'h0d:out=2'h2;
23
        5'h0e:out=2'h2;
24
        5'h0f:out=2'h1;
25
        5'h10:out=2'h1;
26
        5'h11:out=2'h0;
27
        5'h12:out=2'h3;
28
        5'h13:out=2'h3;
29
        5'h14:out=2'h0;
30
        5'h15:out=2'h1;
31
        5'h16:out=2'h1;
32
        5'h17:out=2'h2;
33
        5'h18:out=2'h2;
34
        5'h19:out=2'h3;
35
        5'h1a:out=2'h1;
36
        5'h1b:out=2'h0;
37
        5'h1c:out=2'h2;
38
        5'h1d:out=2'h3;
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.