Method: Reset#low_signal
- Defined in:
- lib/tdl/elements/Reset.rb
#low_signal ⇒ Object
def left_port_length
("/* input" + " */ ").length
end
def right_port_length
(".#{@name.to_s} ").length
end
def ex_port(left_align_len = 7,right_align_len = 7)
if left_align_len >= left_port_length
sub_left_len = left_align_len - left_port_length
else
sub_left_len = 0
end
if right_align_len >= right_port_length
sub_right_len = right_align_len - right_port_length
else
sub_right_len = 0
end
if @port
("/* input" + " "*sub_left_len + "*/ " + "."+@name.to_s + " "*sub_right_len)
end
end
85 86 87 88 89 90 91 |
# File 'lib/tdl/elements/Reset.rb', line 85 def low_signal if(active.eql? "low") signal else NqString.new("~").concat signal end end |