Skip to content

Commit

Permalink
Add ivl_logic_delay function to ivl_target.
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Dec 6, 2001
1 parent 7bf480b commit c8319bc
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
1 change: 1 addition & 0 deletions ivl.def
Expand Up @@ -43,6 +43,7 @@ ivl_expr_uvalue
ivl_expr_width

ivl_logic_attr
ivl_logic_delay
ivl_logic_name
ivl_logic_basename
ivl_logic_scope
Expand Down
6 changes: 5 additions & 1 deletion ivl_target.h
Expand Up @@ -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.88 2001/11/14 03:28:49 steve Exp $"
#ident "$Id: ivl_target.h,v 1.89 2001/12/06 03:11:00 steve Exp $"
#endif

#ifdef __cplusplus
Expand Down Expand Up @@ -487,6 +487,7 @@ extern ivl_logic_t ivl_logic_type(ivl_net_logic_t net);
extern ivl_nexus_t ivl_logic_pin(ivl_net_logic_t net, unsigned pin);
extern unsigned ivl_logic_pins(ivl_net_logic_t net);
extern ivl_udp_t ivl_logic_udp(ivl_net_logic_t net);
extern unsigned ivl_logic_delay(ivl_net_logic_t net, unsigned transition);

extern const char* ivl_logic_attr(ivl_net_logic_t net, const char*key);

Expand Down Expand Up @@ -976,6 +977,9 @@ _END_DECL

/*
* $Log: ivl_target.h,v $
* Revision 1.89 2001/12/06 03:11:00 steve
* Add ivl_logic_delay function to ivl_target.
*
* Revision 1.88 2001/11/14 03:28:49 steve
* DLL target support for force and release.
*
Expand Down
11 changes: 10 additions & 1 deletion t-dll-api.cc
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT) && !defined(macintosh)
#ident "$Id: t-dll-api.cc,v 1.72 2001/11/14 03:28:49 steve Exp $"
#ident "$Id: t-dll-api.cc,v 1.73 2001/12/06 03:11:00 steve Exp $"
#endif

# include "config.h"
Expand Down Expand Up @@ -481,6 +481,12 @@ extern "C" ivl_udp_t ivl_logic_udp(ivl_net_logic_t net)
return net->udp;
}

extern "C" unsigned ivl_logic_delay(ivl_net_logic_t net, unsigned transition)
{
assert(transition < 3);
return net->delay[transition];
}


extern "C" unsigned ivl_udp_sequ(ivl_udp_t net)
{
Expand Down Expand Up @@ -1440,6 +1446,9 @@ extern "C" ivl_statement_t ivl_stmt_sub_stmt(ivl_statement_t net)

/*
* $Log: t-dll-api.cc,v $
* Revision 1.73 2001/12/06 03:11:00 steve
* Add ivl_logic_delay function to ivl_target.
*
* Revision 1.72 2001/11/14 03:28:49 steve
* DLL target support for force and release.
*
Expand Down
13 changes: 12 additions & 1 deletion t-dll.cc
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT) && !defined(macintosh)
#ident "$Id: t-dll.cc,v 1.70 2001/11/14 03:28:49 steve Exp $"
#ident "$Id: t-dll.cc,v 1.71 2001/12/06 03:11:00 steve Exp $"
#endif

# include "config.h"
Expand Down Expand Up @@ -618,6 +618,10 @@ void dll_target::logic(const NetLogic*net)

logic_attributes(obj, net);

obj->delay[0] = net->rise_time();
obj->delay[1] = net->fall_time();
obj->delay[2] = net->decay_time();

scope_add_logic(scope, obj);
}

Expand Down Expand Up @@ -722,6 +726,10 @@ void dll_target::udp(const NetUDP*net)
obj->scope_= scope;
obj->name_ = strdup(net->name());

obj->delay[0] = net->rise_time();
obj->delay[1] = net->fall_time();
obj->delay[2] = net->decay_time();

scope_add_logic(scope, obj);
}

Expand Down Expand Up @@ -1666,6 +1674,9 @@ extern const struct target tgt_dll = { "dll", &dll_target_obj };

/*
* $Log: t-dll.cc,v $
* Revision 1.71 2001/12/06 03:11:00 steve
* Add ivl_logic_delay function to ivl_target.
*
* Revision 1.70 2001/11/14 03:28:49 steve
* DLL target support for force and release.
*
Expand Down
7 changes: 6 additions & 1 deletion t-dll.h
Expand Up @@ -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.71 2001/11/14 03:28:49 steve Exp $"
#ident "$Id: t-dll.h,v 1.72 2001/12/06 03:11:01 steve Exp $"
#endif

# include "target.h"
Expand Down Expand Up @@ -361,6 +361,8 @@ struct ivl_net_logic_s {
char**akey_;
char**aval_;
unsigned nattr_;

unsigned delay[3];
};


Expand Down Expand Up @@ -587,6 +589,9 @@ struct ivl_statement_s {

/*
* $Log: t-dll.h,v $
* Revision 1.72 2001/12/06 03:11:01 steve
* Add ivl_logic_delay function to ivl_target.
*
* Revision 1.71 2001/11/14 03:28:49 steve
* DLL target support for force and release.
*
Expand Down

0 comments on commit c8319bc

Please sign in to comment.