-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweights.vhd
27 lines (21 loc) · 1.01 KB
/
weights.vhd
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
--------------------------------------------------------------------------------
-- file generated by generate_weights.py
-------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use work.types.all;
package weights is
constant num_weights : integer := 8;
constant weight_precision : integer := 10;
constant W : complex_vector(0 to 7) := (
(to_signed(1024, word_size), to_signed(0, word_size)),
(to_signed(946, word_size), to_signed(392, word_size)),
(to_signed(724, word_size), to_signed(724, word_size)),
(to_signed(392, word_size), to_signed(946, word_size)),
(to_signed(0, word_size), to_signed(1024, word_size)),
(to_signed(-392, word_size), to_signed(946, word_size)),
(to_signed(-724, word_size), to_signed(724, word_size)),
(to_signed(-946, word_size), to_signed(392, word_size))
);
end package weights;