-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmult_inv_16.mif
More file actions
28 lines (25 loc) · 766 Bytes
/
mult_inv_16.mif
File metadata and controls
28 lines (25 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Author: Vincent Levesque %
% Date: September 3, 2001 %
% Description: Lookup table for multiplicative inverses modulo 16 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DEPTH = 16; % number of entries (4-bit => 16 possible inputs) %
WIDTH = 4; % width of output %
ADDRESS_RADIX = DEC; % type in which address (input) will be specified %
DATA_RADIX = DEC; % type in which result (output) will be specified %
% lookup table %
% left: input value %
% right: multiplicative inverse of input value or 0 if there is no inverse %
CONTENT
BEGIN
0 : 0;
1 : 1;
2 : 0;
3 : 11;
5 : 13;
7 : 7;
9 : 9;
11 : 3;
13 : 5;
15 : 15;
END ;