From da883638819203211e8e5e23fd54c9ade9202379 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 16 Nov 2012 12:56:08 +0000 Subject: [PATCH] * ./stratus: - Change: Busses are now created in "downto" order instead of "to". --- stratus1/doc/stratus/man_new.tex | 2 +- stratus1/src/stratus/st_model.py | 3 ++- stratus1/src/stratus/st_net.py | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/stratus1/doc/stratus/man_new.tex b/stratus1/doc/stratus/man_new.tex index 75afd52b..1bb28025 100644 --- a/stratus1/doc/stratus/man_new.tex +++ b/stratus1/doc/stratus/man_new.tex @@ -6,5 +6,5 @@ \item{A \verb-Stimuli- method permits to generate stimuli for simulation.} \item{Thanks to the \verb-Stimuli- method, a testbench can now automatically be generated either in Alliance PAT format or standard VHDL.} \item{The \verb-Simul- method of the class \verb-Model- permits to simulate either with the Alliance's simulator \verb-asimut- or a standard VHDL simulator (\verb-ghdl-).} -\begin{end} +\end{itemize} diff --git a/stratus1/src/stratus/st_model.py b/stratus1/src/stratus/st_model.py index 9749ad6d..c9989e7d 100644 --- a/stratus1/src/stratus/st_model.py +++ b/stratus1/src/stratus/st_model.py @@ -467,7 +467,8 @@ class Model : if EDITOR: EDITOR.setCell ( self._hur_cell ) EDITOR.fit () - Breakpoint.stop ( stopLevel, message ) + if stopLevel > 0: + Breakpoint.stop ( stopLevel, message ) ##### Save : in order to create the output files ##### def Save ( self, views = 0, fileName = None ) : diff --git a/stratus1/src/stratus/st_net.py b/stratus1/src/stratus/st_net.py index 694398fb..e2c717be 100644 --- a/stratus1/src/stratus/st_net.py +++ b/stratus1/src/stratus/st_net.py @@ -919,7 +919,8 @@ class net : if self._arity == 1 : self.hur_net ( self._name, 0 ) else : - for i in range ( self._ind, self._arity+self._ind ) : self.hur_net ( self._name + "(" + str(i) + ")", i ) + for i in range ( self._ind+self._arity, self._ind, -1 ): + self.hur_net ( '%s(%d)' % (self._name,i), i ) ##### hur_net one by one ##### def hur_net ( self, name, ind ) :