From Python to silicon
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

projects:cplx_math [2009/01/10 18:43]
guenter Added RTL
projects:cplx_math [2011/03/02 21:45] (current)
guenter added download links for source code
Line 1: Line 1:
 ====== Complex Math ====== ====== Complex Math ======
  
-======= Complex Multiplier =======+===== Complex Multiplier =====
  
 Multiplying two complex numbers __A__ and __B__ is performed in the following way: Multiplying two complex numbers __A__ and __B__ is performed in the following way:
Line 37: Line 37:
  
  
-======= Test bench =======+===== Test bench =====
  
 For testing a unittest is created that creates all combination of possible input values, calculates the expected output and feeds the input data to the MyHDL module, verifying that the output matches the expected output. For testing a unittest is created that creates all combination of possible input values, calculates the expected output and feeds the input data to the MyHDL module, verifying that the output matches the expected output.
  
-<code myhdl>+<code myhdl test_cplxMult.py>
 #!/usr/bin/env python #!/usr/bin/env python
  
Line 113: Line 113:
  
  
-======= RTL implementation =======+===== RTL implementation =====
  
 Here is the implementation of the complex multiplier: Here is the implementation of the complex multiplier:
  
-<code myhdl>+<code myhdl cplxMult.py>
 #!/usr/bin/env python #!/usr/bin/env python
  
projects/cplx_math.txt ยท Last modified: 2011/03/02 21:45 by guenter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki