Documentation work

This commit is contained in:
pjht 2020-05-08 07:45:01 -05:00
parent f83dfba2e0
commit ed97d1e5c3
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ class Gate
# @param table [Array<Array<Integer>>] The truth table,
# which is an array of entries. The last value in the entry is the expected output,
# the rest are the inputs to the ports.
# @return [Boolean] Whether the truth table matches the gate's behavior
def self.test_table(table)
ports=[]
(table[0].length-1).times do

View File

@ -3,6 +3,7 @@ class VCD
# @!attribute [w] fd
# @api private
# Used for testing to set the file to an RSpec double.
attr_writer :fd
# @param filename [String] The filename to output to
# @param timescale [String] The timescale