-
Notifications
You must be signed in to change notification settings - Fork 2
/
Main.v
45 lines (35 loc) · 941 Bytes
/
Main.v
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
`ifndef Main
`define Main
`ifndef TEST_BENCH
`include "config.v"
// synopsys translate_off
`include "RBMLayer.v"
`include "ClassiLayer.v"
// synopsys translate_on
`else
// synopsys translate_off
`include "../RBMLayer.v"
`include "../ClassiLayer.v"
// synopsys translate_on
`endif
module Main
(input reset,
input clock,
// input [11:0] Hbias,
input [11:0] Hvalue,
input [9:0] pixel_id,
input pixel,
input adder_type,
input enable_hidden,
input enable_classi,
// input [11:0] Cbias,
input [11:0] Cvalue,
input [8:0] hidden_id,
input hidden_pixel,
output hidden, output hidden_finish,
output spike, output finish
);
RBMLayer rbm(reset, clock,Hvalue, pixel_id, pixel & enable_hidden, adder_type, hidden, hidden_finish);
ClassiLayer classi(reset, clock , Cvalue, hidden_id, hidden_pixel & enable_classi, spike, finish);
endmodule
`endif