Class: HDL::TableChip
- Inherits:
-
Chip
- Object
- Chip
- HDL::TableChip
show all
- Defined in:
- lib/hdl/chip/table_chip.rb
Instance Attribute Summary
Attributes inherited from Chip
#inputs, #name, #outputs, #path
Instance Method Summary
collapse
Methods inherited from Chip
#dependees, #dependents, #inspect, #primitives
Constructor Details
#initialize(name, path, data) ⇒ TableChip
3
4
5
6
|
# File 'lib/hdl/chip/table_chip.rb', line 3
def initialize(name, path, data)
super
@table = data[:table]
end
|
Instance Method Details
#components ⇒ Object
12
13
14
|
# File 'lib/hdl/chip/table_chip.rb', line 12
def components
{}
end
|
#evaluate(pins = {}) ⇒ Object
20
21
22
23
24
25
|
# File 'lib/hdl/chip/table_chip.rb', line 20
def evaluate(pins = {})
check_pins!(pins)
row = find_row(pins)
select_outputs(row)
end
|
#internal ⇒ Object
8
9
10
|
# File 'lib/hdl/chip/table_chip.rb', line 8
def internal
[]
end
|
#primitive? ⇒ Boolean
16
17
18
|
# File 'lib/hdl/chip/table_chip.rb', line 16
def primitive?
true
end
|