@@ -4439,25 +4439,25 @@ static std::vector<t_arch_switch_inf> process_switches(pugi::xml_node Parent,
44394439 /* As noted above, due to their configuration of pass transistors feeding into a buffer,
44404440 * only multiplexers and tristate buffers have an internal capacitance element. */
44414441
4442- SwitchType type = SwitchType ::MUX;
4442+ e_switch_type type = e_switch_type ::MUX;
44434443 if (0 == strcmp (type_name, " mux" )) {
4444- type = SwitchType ::MUX;
4444+ type = e_switch_type ::MUX;
44454445 expect_only_attributes (Node, {" type" , " name" , " R" , " Cin" , " Cout" , " Cinternal" , " Tdel" , " buf_size" , " power_buf_size" , " mux_trans_size" }, " with type '" s + type_name + " '" s, loc_data);
44464446
44474447 } else if (0 == strcmp (type_name, " tristate" )) {
4448- type = SwitchType ::TRISTATE;
4448+ type = e_switch_type ::TRISTATE;
44494449 expect_only_attributes (Node, {" type" , " name" , " R" , " Cin" , " Cout" , " Cinternal" , " Tdel" , " buf_size" , " power_buf_size" }, " with type '" s + type_name + " '" s, loc_data);
44504450
44514451 } else if (0 == strcmp (type_name, " buffer" )) {
4452- type = SwitchType ::BUFFER;
4452+ type = e_switch_type ::BUFFER;
44534453 expect_only_attributes (Node, {" type" , " name" , " R" , " Cin" , " Cout" , " Tdel" , " buf_size" , " power_buf_size" }, " with type '" s + type_name + " '" s, loc_data);
44544454
44554455 } else if (0 == strcmp (type_name, " pass_gate" )) {
4456- type = SwitchType ::PASS_GATE;
4456+ type = e_switch_type ::PASS_GATE;
44574457 expect_only_attributes (Node, {" type" , " name" , " R" , " Cin" , " Cout" , " Tdel" }, " with type '" s + type_name + " '" s, loc_data);
44584458
44594459 } else if (0 == strcmp (type_name, " short" )) {
4460- type = SwitchType ::SHORT;
4460+ type = e_switch_type ::SHORT;
44614461 expect_only_attributes (Node, {" type" , " name" , " R" , " Cin" , " Cout" , " Tdel" }, " with type " s + type_name + " '" s, loc_data);
44624462 } else {
44634463 archfpga_throw (loc_data.filename_c_str (), loc_data.line (Node),
@@ -4473,7 +4473,7 @@ static std::vector<t_arch_switch_inf> process_switches(pugi::xml_node Parent,
44734473 // architecture without Cinternal without breaking the program flow.
44744474 ReqOpt CINTERNAL_REQD = ReqOpt::OPTIONAL;
44754475
4476- if (arch_switch.type () == SwitchType ::SHORT) {
4476+ if (arch_switch.type () == e_switch_type ::SHORT) {
44774477 // Cin/Cout are optional on shorts, since they really only have one capacitance
44784478 CIN_REQD = ReqOpt::OPTIONAL;
44794479 COUT_REQD = ReqOpt::OPTIONAL;
@@ -4482,15 +4482,15 @@ static std::vector<t_arch_switch_inf> process_switches(pugi::xml_node Parent,
44824482 arch_switch.Cout = get_attribute (Node, " Cout" , loc_data, COUT_REQD).as_float (0 );
44834483 arch_switch.Cinternal = get_attribute (Node, " Cinternal" , loc_data, CINTERNAL_REQD).as_float (0 );
44844484
4485- if (arch_switch.type () == SwitchType ::MUX) {
4485+ if (arch_switch.type () == e_switch_type ::MUX) {
44864486 // Only muxes have mux transistors
44874487 arch_switch.mux_trans_size = get_attribute (Node, " mux_trans_size" , loc_data, ReqOpt::OPTIONAL).as_float (1 );
44884488 } else {
44894489 arch_switch.mux_trans_size = 0 .;
44904490 }
44914491
4492- if (arch_switch.type () == SwitchType ::SHORT
4493- || arch_switch.type () == SwitchType ::PASS_GATE) {
4492+ if (arch_switch.type () == e_switch_type ::SHORT
4493+ || arch_switch.type () == e_switch_type ::PASS_GATE) {
44944494 // No buffers
44954495 arch_switch.buf_size_type = BufferSize::ABSOLUTE;
44964496 arch_switch.buf_size = 0 .;
0 commit comments