mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
We can now generate part families.
- README: added build prerequisites - "part name" is now more correctly called "package name" - changed keyword "part" to "package" - removed inst_debug and struct inst_ops.debug functions - never really used them anyway - we can now generate multiple packages from a single file git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5478 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
10
obj.c
10
obj.c
@@ -28,7 +28,7 @@
|
||||
#define MAX_ITERATIONS 1000 /* abort "loop"s at this limit */
|
||||
|
||||
|
||||
char *part_name = NULL;
|
||||
char *pkg_name = NULL;
|
||||
struct frame *frames = NULL;
|
||||
struct frame *root_frame = NULL;
|
||||
struct frame *active_frame = NULL;
|
||||
@@ -163,8 +163,14 @@ error:
|
||||
|
||||
static int generate_items(struct frame *frame, struct coord base, int active)
|
||||
{
|
||||
char *s;
|
||||
int ok;
|
||||
|
||||
if (!frame->name) {
|
||||
s = expand(pkg_name, frame);
|
||||
inst_select_pkg(s);
|
||||
free(s);
|
||||
}
|
||||
inst_begin_active(active && frame == active_frame);
|
||||
ok = generate_vecs(frame, base) && generate_objs(frame, base, active);
|
||||
inst_end_active();
|
||||
@@ -270,8 +276,8 @@ int instantiate(void)
|
||||
struct coord zero = { 0, 0 };
|
||||
int ok;
|
||||
|
||||
inst_start();
|
||||
meas_start();
|
||||
inst_start();
|
||||
instantiation_error = NULL;
|
||||
ok = generate_frame(root_frame, zero, NULL, NULL, 1);
|
||||
if (ok)
|
||||
|
||||
Reference in New Issue
Block a user