Documentation work
This commit is contained in:
parent
f83dfba2e0
commit
ed97d1e5c3
@ -43,6 +43,7 @@ class Gate
|
|||||||
# @param table [Array<Array<Integer>>] The truth table,
|
# @param table [Array<Array<Integer>>] The truth table,
|
||||||
# which is an array of entries. The last value in the entry is the expected output,
|
# which is an array of entries. The last value in the entry is the expected output,
|
||||||
# the rest are the inputs to the ports.
|
# the rest are the inputs to the ports.
|
||||||
|
# @return [Boolean] Whether the truth table matches the gate's behavior
|
||||||
def self.test_table(table)
|
def self.test_table(table)
|
||||||
ports=[]
|
ports=[]
|
||||||
(table[0].length-1).times do
|
(table[0].length-1).times do
|
||||||
|
@ -3,6 +3,7 @@ class VCD
|
|||||||
|
|
||||||
# @!attribute [w] fd
|
# @!attribute [w] fd
|
||||||
# @api private
|
# @api private
|
||||||
|
# Used for testing to set the file to an RSpec double.
|
||||||
attr_writer :fd
|
attr_writer :fd
|
||||||
# @param filename [String] The filename to output to
|
# @param filename [String] The filename to output to
|
||||||
# @param timescale [String] The timescale
|
# @param timescale [String] The timescale
|
||||||
|
Loading…
Reference in New Issue
Block a user