1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

Added README.txt

This commit is contained in:
jand 2003-01-30 22:35:52 +00:00
parent 7a67867adb
commit 44f9d1e850
2 changed files with 18 additions and 1 deletions

View File

@ -14,7 +14,7 @@ def PrefixAnd(width, speed, PI, PO):
PT = Signal(intbv())
while 1:
yield PI, PT
PT.next[n:] = PI.val
PT.next[n:] = PI.val[n:]
for l in range(1, m+1):
for k in range(2**(m-l)):
for i in range(2**(l-1)):

View File

@ -0,0 +1,17 @@
The examples in this directory are based on VHDL code from the
"arith_lib" library, Version 1.0, written by Reto Zimmerman, who holds
the copyright for the original code. The project web page is at
<http://www.iis.ee.ethz.ch/~zimmi/arith_lib.html>.
I translated a few modules into myhdl/Python and added testbenches to
verify and demonstrate myhdl modelling, as well as Python's unittest
framework. The arith_lib library is useful for these purposes as it
contains a (simple) behavioral architecture as well as a (sometimes
complex) structural architecture for each module.
The testbenches are the files called test_<Name>.py. Run them as
follows:
python test_<Name>.py