Add the disable statemnent.
This commit is contained in:
parent
0550287658
commit
d39190243b
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#if !defined(WINNT) && !defined(macintosh)
|
||||
#ident "$Id: ivl_target.h,v 1.50 2001/04/06 02:28:02 steve Exp $"
|
||||
#ident "$Id: ivl_target.h,v 1.51 2001/04/07 19:24:36 steve Exp $"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
@ -248,6 +248,7 @@ typedef enum ivl_statement_type_e {
|
|||
IVL_ST_CONDIT,
|
||||
IVL_ST_DELAY,
|
||||
IVL_ST_DELAYX,
|
||||
IVL_ST_DISABLE,
|
||||
IVL_ST_FOREVER,
|
||||
IVL_ST_FORK,
|
||||
IVL_ST_REPEAT,
|
||||
|
|
@ -759,6 +760,9 @@ _END_DECL
|
|||
|
||||
/*
|
||||
* $Log: ivl_target.h,v $
|
||||
* Revision 1.51 2001/04/07 19:24:36 steve
|
||||
* Add the disable statemnent.
|
||||
*
|
||||
* Revision 1.50 2001/04/06 02:28:02 steve
|
||||
* Generate vvp code for functions with ports.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#if !defined(WINNT) && !defined(macintosh)
|
||||
#ident "$Id: t-dll-proc.cc,v 1.24 2001/04/06 02:28:02 steve Exp $"
|
||||
#ident "$Id: t-dll-proc.cc,v 1.25 2001/04/07 19:26:32 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "target.h"
|
||||
|
|
@ -371,6 +371,17 @@ bool dll_target::proc_delay(const NetPDelay*net)
|
|||
return flag;
|
||||
}
|
||||
|
||||
bool dll_target::proc_disable(const NetDisable*net)
|
||||
{
|
||||
assert(stmt_cur_);
|
||||
assert(stmt_cur_->type_ == IVL_ST_NONE);
|
||||
|
||||
stmt_cur_->type_ = IVL_ST_DISABLE;
|
||||
stmt_cur_->u_.disable_.scope = lookup_scope_(net->target());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void dll_target::proc_forever(const NetForever*net)
|
||||
{
|
||||
assert(stmt_cur_);
|
||||
|
|
@ -576,6 +587,9 @@ void dll_target::proc_while(const NetWhile*net)
|
|||
|
||||
/*
|
||||
* $Log: t-dll-proc.cc,v $
|
||||
* Revision 1.25 2001/04/07 19:26:32 steve
|
||||
* Add the disable statemnent.
|
||||
*
|
||||
* Revision 1.24 2001/04/06 02:28:02 steve
|
||||
* Generate vvp code for functions with ports.
|
||||
*
|
||||
|
|
|
|||
10
t-dll.h
10
t-dll.h
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#if !defined(WINNT) && !defined(macintosh)
|
||||
#ident "$Id: t-dll.h,v 1.36 2001/04/06 02:28:02 steve Exp $"
|
||||
#ident "$Id: t-dll.h,v 1.37 2001/04/07 19:26:32 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "target.h"
|
||||
|
|
@ -83,6 +83,7 @@ struct dll_target : public target_t, public expr_scan_t {
|
|||
void proc_case(const NetCase*);
|
||||
void proc_condit(const NetCondit*);
|
||||
bool proc_delay(const NetPDelay*);
|
||||
bool proc_disable(const NetDisable*);
|
||||
void proc_forever(const NetForever*);
|
||||
void proc_repeat(const NetRepeat*);
|
||||
void proc_stask(const NetSTask*);
|
||||
|
|
@ -395,6 +396,10 @@ struct ivl_statement_s {
|
|||
ivl_statement_t stmt_;
|
||||
} delayx_;
|
||||
|
||||
struct { /* IVL_ST_DISABLE */
|
||||
ivl_scope_t scope;
|
||||
} disable_;
|
||||
|
||||
struct { /* IVL_ST_FOREVER */
|
||||
ivl_statement_t stmt_;
|
||||
} forever_;
|
||||
|
|
@ -427,6 +432,9 @@ struct ivl_statement_s {
|
|||
|
||||
/*
|
||||
* $Log: t-dll.h,v $
|
||||
* Revision 1.37 2001/04/07 19:26:32 steve
|
||||
* Add the disable statemnent.
|
||||
*
|
||||
* Revision 1.36 2001/04/06 02:28:02 steve
|
||||
* Generate vvp code for functions with ports.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue