This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rich.console import Console | |
from rich.table import Table | |
from itertools import product | |
class InvalidInputException(Exception): | |
pass | |
def JK_flop(Q, J, K): | |
# Returns Q+ and Q+' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rich.console import Console | |
from rich.table import Table | |
import sys | |
from itertools import product | |
from math import ceil | |
def main(): | |
if len(sys.argv) != 3: | |
print("Command: python3 column.py <literals> <minterms>") | |
print("e.g python3 column.py A,D,B,C 4,7,3,1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import log2 | |
from sys import argv | |
from rich.console import Console | |
from rich.table import Table | |
########## CHANGE THIS ########### | |
NWAY = 2 # 1/2/4 | |
# Number of bytes | |
WORD = 4 # 4 bytes (Probably no need to change this) |