Skip to content

Commit

Permalink
divide file list
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani committed Aug 4, 2023
1 parent 5b833e8 commit 91bc530
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 29 deletions.
31 changes: 2 additions & 29 deletions compile.rb
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
if macro_defined? :RGGEN_ENABLE_BACKDOOR
file_list 'compile_backdoor.rb', from: :current
['apb', 'axi4lite', 'wishbone'].each do |protocol|
file_list "compile_#{protocol}.rb", from: :current
end

[
'rggen_rtl_pkg.sv',
'rggen_or_reducer.sv',
'rggen_mux.sv',
'rggen_bit_field_if.sv',
'rggen_bit_field.sv',
'rggen_bit_field_w01trg.sv',
'rggen_register_if.sv',
'rggen_address_decoder.sv',
'rggen_register_common.sv',
'rggen_default_register.sv',
'rggen_external_register.sv',
'rggen_indirect_register.sv',
'rggen_bus_if.sv',
'rggen_adapter_common.sv',
'rggen_apb_if.sv',
'rggen_apb_adapter.sv',
'rggen_apb_bridge.sv',
'rggen_axi4lite_if.sv',
'rggen_axi4lite_skid_buffer.sv',
'rggen_axi4lite_adapter.sv',
'rggen_axi4lite_bridge.sv',
'rggen_wishbone_if.sv',
'rggen_wishbone_adapter.sv',
'rggen_wishbone_bridge.sv'
].each { |file| source_file file }
4 changes: 4 additions & 0 deletions compile_apb.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
file_list 'compile_core.rb', from: :current
source_file 'rggen_apb_if.sv'
source_file 'rggen_apb_adapter.sv'
source_file 'rggen_apb_bridge.sv'
5 changes: 5 additions & 0 deletions compile_axi4lite.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
file_list 'compile_core.rb', from: :current
source_file 'rggen_axi4lite_if.sv'
source_file 'rggen_axi4lite_skid_buffer.sv'
source_file 'rggen_axi4lite_adapter.sv'
source_file 'rggen_axi4lite_bridge.sv'
20 changes: 20 additions & 0 deletions compile_core.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
if macro_defined? :RGGEN_ENABLE_BACKDOOR
file_list 'compile_backdoor.rb', from: :current
end

[
'rggen_rtl_pkg.sv',
'rggen_or_reducer.sv',
'rggen_mux.sv',
'rggen_bit_field_if.sv',
'rggen_bit_field.sv',
'rggen_bit_field_w01trg.sv',
'rggen_register_if.sv',
'rggen_address_decoder.sv',
'rggen_register_common.sv',
'rggen_default_register.sv',
'rggen_external_register.sv',
'rggen_indirect_register.sv',
'rggen_bus_if.sv',
'rggen_adapter_common.sv'
].each { |file| source_file file }
4 changes: 4 additions & 0 deletions compile_wishbone.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
file_list 'compile_core.rb', from: :current
source_file 'rggen_wishbone_if.sv'
source_file 'rggen_wishbone_adapter.sv'
source_file 'rggen_wishbone_bridge.sv'

0 comments on commit 91bc530

Please sign in to comment.