(ProtobufCMessageInit) scf_line__init,
NULL,NULL,NULL /* reserved[123] */
};
-static const ProtobufCFieldDescriptor scf_epin__field_descriptors[20] =
+static const ProtobufCFieldDescriptor scf_epin__field_descriptors[22] =
{
{
"id",
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
- "tr",
+ "sr",
15,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_DOUBLE,
0, /* quantifier_offset */
- offsetof(ScfEpin, tr),
+ offsetof(ScfEpin, sr),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
- "jtr",
+ "jsr",
16,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_DOUBLE,
0, /* quantifier_offset */
- offsetof(ScfEpin, jtr),
+ offsetof(ScfEpin, jsr),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
- "x",
+ "pr",
17,
PROTOBUF_C_LABEL_REQUIRED,
+ PROTOBUF_C_TYPE_DOUBLE,
+ 0, /* quantifier_offset */
+ offsetof(ScfEpin, pr),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "jpr",
+ 18,
+ PROTOBUF_C_LABEL_REQUIRED,
+ PROTOBUF_C_TYPE_DOUBLE,
+ 0, /* quantifier_offset */
+ offsetof(ScfEpin, jpr),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "x",
+ 19,
+ PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_INT32,
0, /* quantifier_offset */
offsetof(ScfEpin, x),
},
{
"y",
- 18,
+ 20,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_INT32,
0, /* quantifier_offset */
},
{
"vflag",
- 19,
+ 21,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_BOOL,
0, /* quantifier_offset */
},
{
"pflag",
- 20,
+ 22,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_BOOL,
0, /* quantifier_offset */
3, /* field[3] = flags */
0, /* field[0] = id */
9, /* field[9] = ja */
+ 17, /* field[17] = jpr */
11, /* field[11] = jr */
- 15, /* field[15] = jtr */
+ 15, /* field[15] = jsr */
7, /* field[7] = jv */
2, /* field[2] = lid */
- 19, /* field[19] = pflag */
+ 21, /* field[21] = pflag */
+ 16, /* field[16] = pr */
10, /* field[10] = r */
+ 14, /* field[14] = sr */
4, /* field[4] = tos */
- 14, /* field[14] = tr */
12, /* field[12] = uF */
13, /* field[13] = uH */
6, /* field[6] = v */
- 18, /* field[18] = vflag */
- 16, /* field[16] = x */
- 17, /* field[17] = y */
+ 20, /* field[20] = vflag */
+ 18, /* field[18] = x */
+ 19, /* field[19] = y */
};
static const ProtobufCIntRange scf_epin__number_ranges[1 + 1] =
{
{ 1, 0 },
- { 0, 20 }
+ { 0, 22 }
};
const ProtobufCMessageDescriptor scf_epin__descriptor =
{
"ScfEpin",
"",
sizeof(ScfEpin),
- 20,
+ 22,
scf_epin__field_descriptors,
scf_epin__field_indices_by_name,
1, scf_epin__number_ranges,
(ProtobufCMessageInit) scf_econn__init,
NULL,NULL,NULL /* reserved[123] */
};
-static const ProtobufCFieldDescriptor scf_eline__field_descriptors[14] =
+static const ProtobufCFieldDescriptor scf_eline__field_descriptors[12] =
{
{
"id",
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
- {
- "r",
- 12,
- PROTOBUF_C_LABEL_REQUIRED,
- PROTOBUF_C_TYPE_DOUBLE,
- 0, /* quantifier_offset */
- offsetof(ScfEline, r),
- NULL,
- NULL,
- 0, /* flags */
- 0,NULL,NULL /* reserved1,reserved2, etc */
- },
- {
- "jr",
- 13,
- PROTOBUF_C_LABEL_REQUIRED,
- PROTOBUF_C_TYPE_DOUBLE,
- 0, /* quantifier_offset */
- offsetof(ScfEline, jr),
- NULL,
- NULL,
- 0, /* flags */
- 0,NULL,NULL /* reserved1,reserved2, etc */
- },
{
"vflag",
- 14,
+ 12,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_BOOL,
0, /* quantifier_offset */
3, /* field[3] = flags */
0, /* field[0] = id */
10, /* field[10] = ja */
- 12, /* field[12] = jr */
8, /* field[8] = jv */
6, /* field[6] = lines */
1, /* field[1] = pins */
- 11, /* field[11] = r */
7, /* field[7] = v */
- 13, /* field[13] = vflag */
+ 11, /* field[11] = vflag */
};
static const ProtobufCIntRange scf_eline__number_ranges[1 + 1] =
{
{ 1, 0 },
- { 0, 14 }
+ { 0, 12 }
};
const ProtobufCMessageDescriptor scf_eline__descriptor =
{
"ScfEline",
"",
sizeof(ScfEline),
- 14,
+ 12,
scf_eline__field_descriptors,
scf_eline__field_indices_by_name,
1, scf_eline__number_ranges,
double jr;
double uf;
double uh;
- double tr;
- double jtr;
+ double sr;
+ double jsr;
+ double pr;
+ double jpr;
int32_t x;
int32_t y;
protobuf_c_boolean vflag;
};
#define SCF_EPIN__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&scf_epin__descriptor) \
- , 0, 0, 0, 0, 0,NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
+ , 0, 0, 0, 0, 0,NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
struct _ScfEconn
double jv;
double a;
double ja;
- double r;
- double jr;
protobuf_c_boolean vflag;
};
#define SCF_ELINE__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&scf_eline__descriptor) \
- , 0, 0,NULL, 0, 0, 0, 0,NULL, 0,NULL, 0, 0, 0, 0, 0, 0, 0 }
+ , 0, 0,NULL, 0, 0, 0, 0,NULL, 0,NULL, 0, 0, 0, 0, 0 }
struct _ScfEcomponent
jr += c->jr;
}
- p->tr = r;
- p->jtr = jr;
+ p->sr = r;
+ p->jsr = jr;
- scf_loge("i: %d, c%ldp%ld, p->tr: %lg, p->jtr: %lg\n", i, p->cid, p->id, p->tr, p->jtr);
+ p->pr = r;
+ p->jpr = jr;
+
+ scf_loge("i: %d, c%ldp%ld, p->tr: %lg, p->jtr: %lg\n", i, p->cid, p->id, p->sr, p->jsr);
}
printf("\n");
double _r = child->r / R;
double _jr = -child->jr / R;
- r = p1->tr - p0->tr;
- jr = p1->jtr - p0->jtr;
+ r = p1->pr - p0->pr;
+ jr = p1->jpr - p0->jpr;
R = r * r + jr * jr;
r = r / R;
r = r / R;
jr = -jr / R;
- double dr = p1->tr - (p0->tr + r);
- double jdr = p1->jtr - (p0->jtr + jr);
+ double dr = p1->pr - (p0->pr + r);
+ double jdr = p1->jpr - (p0->jpr + jr);
for ( ; j < path->pins->size; j++) {
p = path->pins->data[j];
- p->tr -= dr;
- p->jtr -= jdr;
+ p->pr -= dr;
+ p->jpr -= jdr;
- scf_logw("j: %d, c%ldp%ld, p->tr: %lg, p->jtr: %lg\n", j, p->cid, p->id, p->tr, p->jtr);
+ scf_logw("j: %d, c%ldp%ld, p->pr: %lg + j%lg\n", j, p->cid, p->id, p->pr, p->jpr);
}
scf_loge("child: %d, r: %lg, jr: %lg, r0: %lg, jr0: %lg, _r: %lg, _jr: %lg, dr: %lg, jdr: %lg\n\n",
p = path->pins->data[path->pins->size - 1];
- path->r = p->tr;
- path->jr = p->jtr;
+ path->r = p->pr;
+ path->jr = p->jpr;
scf_loge("path: %d, r: %lg, jr: %lg, r0: %lg, jr0: %lg\n",
path->index, path->r, path->jr, path->r0, path->jr0);
for (i = 0; i < path->pins->size; i++) {
p = path->pins->data[i];
- v = a * p->tr - ja * p->jtr;
- jv = ja * p->tr + a * p->jtr;
+ v = a * p->pr - ja * p->jpr;
+ jv = ja * p->pr + a * p->jpr;
p->v = p0->v - v;
p->jv = p0->jv - jv;