Guest User

Untitled

a guest
May 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. require 'rake/clean'
  2.  
  3. CLOBBER.include('src/*.o','src/*.cf')
  4.  
  5. namespace :tests do
  6. rule '.o' => '.vhdl' do |t|
  7. sh "ghdl -a #{t.source}"
  8. end
  9.  
  10. testbenches = FileList['src/*tb.vhdl']
  11.  
  12. desc "Build and run all tests"
  13. components = ['src/adder','src/junk']
  14. sources = components.collect{|name| name+".o"}
  15.  
  16. task :run => sources do
  17.  
  18. end
  19.  
  20. end
Add Comment
Please, Sign In to add comment