1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | ############################################################### |
---|
4 | ### ### |
---|
5 | ### File : genmux2.py ### |
---|
6 | ### Date : December 10 2009 ### |
---|
7 | ### Version : 1.02 ### |
---|
8 | ### Author : Belloeil Sophie ### |
---|
9 | ### ### |
---|
10 | ### Origin : This description has been developed at LIP6 ### |
---|
11 | ### University Paris 6 - Pierre et Marie Curie ### |
---|
12 | ### 4 Place Jussieu 75252 Paris Cedex 05 - France ### |
---|
13 | ### ### |
---|
14 | ############################################################### |
---|
15 | |
---|
16 | from stratus import * |
---|
17 | |
---|
18 | from mux import mux |
---|
19 | |
---|
20 | n = Param ( "n" ) |
---|
21 | |
---|
22 | mux = mux ("mux_%d" % n, param = { 'nbit' : n } ) |
---|
23 | |
---|
24 | mux.Interface () |
---|
25 | mux.Netlist () |
---|
26 | mux.Save () |
---|
27 | |
---|
28 | # Simulation |
---|
29 | mux.Pattern () |
---|
30 | mux.Simul () |
---|