ToolsTp2: genmux2.py

File genmux2.py, 992 bytes (added by cobell, 14 years ago)
Line 
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
16from stratus import *
17
18from mux import mux
19
20n = Param ( "n" )
21
22mux = mux ("mux_%d" % n, param = { 'nbit' : n } )
23
24mux.Interface ()
25mux.Netlist ()
26mux.Save ()
27
28# Simulation
29mux.Pattern ()
30mux.Simul ()