Method: Handshaker#output
- Defined in:
- lib/HDLRuby/hdr_samples/with_class.rb
#output ⇒ Object
Declares the signals used for output to the handshaker and do the connections of the upper SystemI
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/HDLRuby/hdr_samples/with_class.rb', line 75 def output obuffer = oread_valid = oread_ready = owrite_valid = owrite_ready =nil type = @type buffer = @buffer read_valid = @read_valid read_ready = @read_ready write_valid = @write_valid write_ready = @write_ready HDLRuby::High.cur_system.open do obuffer = type.output(HDLRuby.uniq_name) oread_valid = output(HDLRuby.uniq_name) oread_ready = output(HDLRuby.uniq_name) owrite_valid = input(HDLRuby.uniq_name) owrite_ready = input(HDLRuby.uniq_name) end @obuffer = obuffer @oread_valid = oread_valid @oread_ready = oread_ready @owrite_valid = owrite_valid @owrite_ready = owrite_ready end |