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 __future__ import print_function | |
from BinPy.tools import Clock | |
from BinPy.Sequential.counters import NBitRippleCounter | |
from BinPy.Gates import Connector | |
toggle = Connector(1) | |
# Initialize the clock with leading edge = 1 and frequency = 1000Hz | |
clock = Clock(init_state=1, frequency=1000) | |
clock.start() #Start the clock |
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
INITIAL STATE | |
[0, 0, 0, 0] | |
TRIGGERING THE COUNTER SEQUENTIALLY 2^4 + 1 times | |
[0, 0, 0, 0] | |
[0, 0, 0, 1] | |
[0, 0, 1, 0] | |
[0, 0, 1, 1] | |
[0, 1, 0, 0] | |
[0, 1, 0, 1] | |
[0, 1, 1, 0] |
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
class NBitRippleCounter(Counter): | |
""" | |
An N-Bit Ripple Counter | |
""" | |
def __init__( | |
self, | |
bits, | |
clock_connector, |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file has been truncated, but you can view the full file.
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
This is a list of errors encountered by PEP8 checker in sympy after ignoring E501, E502, E121, E122, E124, E123, E125, E126, E127, E128, E129, E131, E262, E265 and E226. | |
./setup.py:107:1: E302 expected 2 blank lines, found 1 | |
./setup.py:306:22: E201 whitespace after '{' | |
./setup.py:306:63: E202 whitespace before '}' | |
./examples/galgebra/eval_check.py:11:1: E302 expected 2 blank lines, found 1 | |
./examples/galgebra/exp_check.py:9:1: E302 expected 2 blank lines, found 1 | |
./examples/galgebra/mv_setup_options.py:9:1: E302 expected 2 blank lines, found 1 | |
./examples/galgebra/mv_setup_options.py:31:1: E302 expected 2 blank lines, found 1 | |
./examples/galgebra/mv_setup_options.py:34:1: E302 expected 2 blank lines, found 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
This is a list of errors encountered by PEP8 checker in sympy after ignoring E501, E502, E121, | |
E122, E124, E123, E125, E126, E127, E128, E129, E131, E262, E265 and E226. | |
./setup.py:107:1: E302 expected 2 blank lines, found 1 | |
./setup.py:306:22: E201 whitespace after '{' | |
./setup.py:306:63: E202 whitespace before '}' | |
./examples/galgebra/eval_check.py:11:1: E302 expected 2 blank lines, found 1 | |
./examples/galgebra/exp_check.py:9:1: E302 expected 2 blank lines, found 1 | |
./examples/galgebra/mv_setup_options.py:9:1: E302 expected 2 blank lines, found 1 | |
./examples/galgebra/mv_setup_options.py:31:1: E302 expected 2 blank lines, found 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
Waves: http://www.ece.rice.edu/~daniel/262/pdf/lecture02.pdf | |
http://www.ece.rice.edu/~daniel/262/pdf/lecture03.pdf | |
http://www.ma.utexas.edu/users/uhlen/solitons/notes.pdf |
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
In [21]: from BinPy import Connector | |
In [22]: from sympy import * | |
In [23]: from sympy.abc import x, y | |
In [24]: conn = Connector(Xor(True, x, y)) | |
In [25]: conn | |
Out[25]: Not(Xor(x, y)) |
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
{ | |
"metadata": { | |
"kernelspec": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 2 | |
}, | |
"display_name": "IPython (Python 2)", | |
"language": "python", | |
"name": "python2" |
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
commit 9bff894c5adff98632c6982d262910f1de49c45d | |
Author: Sudhanshu Mishra <mrsud94@gmail.com> | |
Date: Tue Aug 12 09:49:56 2014 +0530 | |
Do not escape raw string literals | |
diff --git a/sympy/concrete/summations.py b/sympy/concrete/summations.py | |
index 570ba23..e90b88c 100644 | |
--- a/sympy/concrete/summations.py | |
+++ b/sympy/concrete/summations.py |
OlderNewer