Non-controversial whitespace cleanup
Nothing to do with tab width! Eliminates useless trailing spaces and tabs, and nearly all <space><tab> pairings. No change to derived files (e.g., .vvp), non-master files (e.g., lxt2_write.c) or the new tgt-vhdl directory. Low priority, simple entropy reduction. Please apply unless it deletes some steganographic content you want to keep.
This commit is contained in:
parent
6f002935d7
commit
66949122cf
|
|
@ -654,7 +654,7 @@ int main(int argc, char **argv)
|
||||||
case 'c':
|
case 'c':
|
||||||
case 'f':
|
case 'f':
|
||||||
add_cmd_file(optarg);
|
add_cmd_file(optarg);
|
||||||
break;
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
process_define(optarg);
|
process_define(optarg);
|
||||||
break;
|
break;
|
||||||
|
|
@ -673,9 +673,9 @@ int main(int argc, char **argv)
|
||||||
if (rc != 0)
|
if (rc != 0)
|
||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
fprintf(stderr, "%s\n", HELP);
|
fprintf(stderr, "%s\n", HELP);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
case 'I':
|
case 'I':
|
||||||
process_include_dir(optarg);
|
process_include_dir(optarg);
|
||||||
|
|
|
||||||
|
|
@ -1227,8 +1227,8 @@ NetNet* PEBinary::elaborate_net_shift_(Design*des, NetScope*scope,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If all data bits get shifted away, connect the zero or
|
/* If all data bits get shifted away, connect the zero or
|
||||||
* padding bits directly to output, and stop before building the
|
* padding bits directly to output, and stop before building the
|
||||||
* concatenation. */
|
* concatenation. */
|
||||||
if (dist >= lwidth) {
|
if (dist >= lwidth) {
|
||||||
connect(osig->pin(0), zero->pin(0));
|
connect(osig->pin(0), zero->pin(0));
|
||||||
return osig;
|
return osig;
|
||||||
|
|
|
||||||
|
|
@ -670,7 +670,7 @@ bool PGenerate::generate_scope_case_(Design*des, NetScope*container)
|
||||||
<< "Generate case matches item at "
|
<< "Generate case matches item at "
|
||||||
<< item->get_fileline() << endl;
|
<< item->get_fileline() << endl;
|
||||||
|
|
||||||
// The name of the scope to generate, whatever that item is.
|
// The name of the scope to generate, whatever that item is.
|
||||||
hname_t use_name (item->scope_name);
|
hname_t use_name (item->scope_name);
|
||||||
|
|
||||||
NetScope*scope = new NetScope(container, use_name,
|
NetScope*scope = new NetScope(container, use_name,
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ int acc_object_of_type(handle object, PLI_INT32 type)
|
||||||
|
|
||||||
if (pli_trace) {
|
if (pli_trace) {
|
||||||
fprintf(pli_trace, "acc_object_of_type(%p \"%s\", %d)",
|
fprintf(pli_trace, "acc_object_of_type(%p \"%s\", %d)",
|
||||||
object, vpi_get_str(vpiName, object), type);
|
object, vpi_get_str(vpiName, object), type);
|
||||||
fflush(pli_trace);
|
fflush(pli_trace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -768,7 +768,7 @@ class NetScope : public Attrib {
|
||||||
|
|
||||||
void evaluate_parameters(class Design*);
|
void evaluate_parameters(class Design*);
|
||||||
|
|
||||||
// Look for defparams that never matched, and print warnings.
|
// Look for defparams that never matched, and print warnings.
|
||||||
void residual_defparams(class Design*);
|
void residual_defparams(class Design*);
|
||||||
|
|
||||||
/* This method generates a non-hierarchical name that is
|
/* This method generates a non-hierarchical name that is
|
||||||
|
|
|
||||||
|
|
@ -1042,7 +1042,7 @@ static void signal_nexus_const(ivl_signal_t sig,
|
||||||
switch (ivl_const_type(con)) {
|
switch (ivl_const_type(con)) {
|
||||||
case IVL_VT_LOGIC:
|
case IVL_VT_LOGIC:
|
||||||
bits = ivl_const_bits(con);
|
bits = ivl_const_bits(con);
|
||||||
for (idx = 0 ; idx < width ; idx += 1) {
|
for (idx = 0 ; idx < width ; idx += 1) {
|
||||||
fprintf(out, "%c", bits[width-idx-1]);
|
fprintf(out, "%c", bits[width-idx-1]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -252,8 +252,8 @@ static PLI_INT32 variable_cb_1(p_cb_data cause)
|
||||||
struct t_cb_data cb;
|
struct t_cb_data cb;
|
||||||
struct vcd_info*info = (struct vcd_info*)cause->user_data;
|
struct vcd_info*info = (struct vcd_info*)cause->user_data;
|
||||||
|
|
||||||
if (dump_is_full) return 0;
|
if (dump_is_full) return 0;
|
||||||
if (dump_is_off) return 0;
|
if (dump_is_off) return 0;
|
||||||
if (dump_header_pending()) return 0;
|
if (dump_header_pending()) return 0;
|
||||||
if (info->scheduled) return 0;
|
if (info->scheduled) return 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ enum operand_e {
|
||||||
OA_CODE_PTR,
|
OA_CODE_PTR,
|
||||||
/* The operand is a variable or net pointer */
|
/* The operand is a variable or net pointer */
|
||||||
OA_FUNC_PTR,
|
OA_FUNC_PTR,
|
||||||
/* The operand is a second functor pointer */
|
/* The operand is a second functor pointer */
|
||||||
OA_FUNC_PTR2,
|
OA_FUNC_PTR2,
|
||||||
/* The operand is a VPI handle */
|
/* The operand is a VPI handle */
|
||||||
OA_VPI_PTR,
|
OA_VPI_PTR,
|
||||||
|
|
@ -1543,7 +1543,7 @@ void compile_code(char*label, char*mnem, comp_operands_t opa)
|
||||||
case OA_NONE:
|
case OA_NONE:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OA_ARR_PTR:
|
case OA_ARR_PTR:
|
||||||
if (opa->argv[idx].ltype != L_SYMB) {
|
if (opa->argv[idx].ltype != L_SYMB) {
|
||||||
yyerror("operand format");
|
yyerror("operand format");
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,7 @@ int vpip_time_units_from_handle(vpiHandle obj)
|
||||||
case vpiReg:
|
case vpiReg:
|
||||||
signal = vpip_signal_from_handle(obj);
|
signal = vpip_signal_from_handle(obj);
|
||||||
scope = vpip_scope(signal);
|
scope = vpip_scope(signal);
|
||||||
return scope->time_units;
|
return scope->time_units;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "ERROR: vpip_time_units_from_handle called with "
|
fprintf(stderr, "ERROR: vpip_time_units_from_handle called with "
|
||||||
|
|
@ -686,20 +686,20 @@ vpiHandle vpi_put_value(vpiHandle obj, s_vpi_value*vp,
|
||||||
|
|
||||||
assert(when != 0);
|
assert(when != 0);
|
||||||
|
|
||||||
switch (when->type) {
|
switch (when->type) {
|
||||||
case vpiScaledRealTime:
|
case vpiScaledRealTime:
|
||||||
dly = (vvp_time64_t)(when->real *
|
dly = (vvp_time64_t)(when->real *
|
||||||
(pow(10.0L,
|
(pow(10.0L,
|
||||||
vpip_time_units_from_handle(obj) -
|
vpip_time_units_from_handle(obj) -
|
||||||
vpip_get_time_precision())));
|
vpip_get_time_precision())));
|
||||||
break;
|
break;
|
||||||
case vpiSimTime:
|
case vpiSimTime:
|
||||||
dly = vpip_timestruct_to_time(when);
|
dly = vpip_timestruct_to_time(when);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dly = 0;
|
dly = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
vpip_put_value_event*put = new vpip_put_value_event;
|
vpip_put_value_event*put = new vpip_put_value_event;
|
||||||
put->handle = obj;
|
put->handle = obj;
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,7 @@ static int compare_types(int code, int type)
|
||||||
(type == vpiIntegerVar ||
|
(type == vpiIntegerVar ||
|
||||||
type == vpiTimeVar ||
|
type == vpiTimeVar ||
|
||||||
type == vpiRealVar))
|
type == vpiRealVar))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -296,7 +296,7 @@ static void vthr_vec_get_value(vpiHandle ref, s_vpi_value*vp)
|
||||||
case vpiRealVal:
|
case vpiRealVal:
|
||||||
vp->value.real = 0;
|
vp->value.real = 0;
|
||||||
for (unsigned idx = wid ; idx > 0 ; idx -= 1) {
|
for (unsigned idx = wid ; idx > 0 ; idx -= 1) {
|
||||||
vp->value.real *= 2.0;
|
vp->value.real *= 2.0;
|
||||||
switch (get_bit(rfp, idx-1)) {
|
switch (get_bit(rfp, idx-1)) {
|
||||||
case BIT4_0:
|
case BIT4_0:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,7 @@ unsigned vpip_vec4_to_dec_str(const vvp_vector4_t&vec4,
|
||||||
void vpip_dec_str_to_vec4(vvp_vector4_t&vec,
|
void vpip_dec_str_to_vec4(vvp_vector4_t&vec,
|
||||||
const char*buf, bool signed_flag)
|
const char*buf, bool signed_flag)
|
||||||
{
|
{
|
||||||
/* The str string is the decimal value with the least
|
/* The str string is the decimal value with the least
|
||||||
significant digit first. This loop creates that string by
|
significant digit first. This loop creates that string by
|
||||||
reversing the order of the buf string. For example, if the
|
reversing the order of the buf string. For example, if the
|
||||||
input is "1234", str gets "4321". */
|
input is "1234", str gets "4321". */
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,7 @@ static unsigned long* vector_to_array(struct vthread_s*thr,
|
||||||
static vvp_vector4_t vthread_bits_to_vector(struct vthread_s*thr,
|
static vvp_vector4_t vthread_bits_to_vector(struct vthread_s*thr,
|
||||||
unsigned bit, unsigned wid)
|
unsigned bit, unsigned wid)
|
||||||
{
|
{
|
||||||
/* Make a vector of the desired width. */
|
/* Make a vector of the desired width. */
|
||||||
|
|
||||||
if (bit >= 4) {
|
if (bit >= 4) {
|
||||||
return vvp_vector4_t(thr->bits4, bit, wid);
|
return vvp_vector4_t(thr->bits4, bit, wid);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue