-
Notifications
You must be signed in to change notification settings - Fork 2
/
compile.rb
33 lines (27 loc) · 990 Bytes
/
compile.rb
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
file_list 'tue/compile.rb', from: :current
file_list 'tvip-common/compile.rb', from: :current
if ENV['PROTOCOL'] == 'axi4lite'
file_list 'tvip-axi/compile.rb', from: :current
else
file_list 'tvip-apb/compile.rb', from: :current
end
if ['verilog', 'vhdl'].include? ENV['LANGUAGE']
file_list 'rtl/rggen-sv-rtl/compile_backdoor.rb', from: :root
source_file 'rtl/rggen-sv-rtl/rggen_rtl_pkg.sv', from: :root
source_file "rtl/rggen-sv-rtl/rggen_#{ENV['PROTOCOL']}_if.sv", from: :root
if ENV['PROTOCOL'] == 'wishbone'
source_file "rtl/rggen-sv-rtl/rggen_apb_if.sv", from: :root
end
end
file_list 'ral/rggen-sv-ral/compile.rb'
source_file 'ral/block_0_ral_pkg.sv', from: :root
source_file 'ral/block_1_ral_pkg.sv', from: :root
include_directory '.'
source_file 'env_pkg.sv'
if ENV['PROTOCOL'] == 'wishbone'
source_file 'apb_env_pkg.sv'
source_file 'apb2wishbone_bridge.sv'
else
source_file "#{ENV['PROTOCOL']}_env_pkg.sv"
end
source_file "#{ENV['PROTOCOL']}_top.sv"