You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following are all the sqashed commits messages:
added instances of Cinternal to mux, tri, buffer
added the Cinternal to struct definitions in physical_types.h
Previous change with CINTERNAL_REQD was lost, reuploaded
removed Cinternal element from buffer
readjusted comment in physical_types.h
Propogates c_internal from arch to rr_graph; reads c_internal; writes c_internal to output
Signed-off-by: Alessandro Comodi <[email protected]>
expect_only_attributes(Node, {"type", "name", "R", "Cin", "Cout", "Tdel", "buf_size", "power_buf_size", "mux_trans_size"}, " with type '"s + type_name + "'"s, loc_data);
3077
+
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);// buffered switch should have a Cinternal element
3078
3078
3079
3079
} elseif (0 == strcmp(type_name, "tristate")) {
3080
3080
type = SwitchType::TRISTATE;
3081
-
expect_only_attributes(Node, {"type", "name", "R", "Cin", "Cout", "Tdel", "buf_size", "power_buf_size"}, " with type '"s + type_name + "'"s, loc_data);
3081
+
expect_only_attributes(Node, {"type", "name", "R", "Cin", "Cout", "Cinternal", "Tdel", "buf_size", "power_buf_size"}, " with type '"s + type_name + "'"s, loc_data);// buffered switch should have a Cinternal element
3082
3082
3083
3083
} elseif (0 == strcmp(type_name, "buffer")) {
3084
3084
type = SwitchType::BUFFER;
3085
-
expect_only_attributes(Node, {"type", "name", "R", "Cin", "Cout", "Tdel", "buf_size", "power_buf_size"}, " with type '"s + type_name + "'"s, loc_data);
3085
+
expect_only_attributes(Node, {"type", "name", "R", "Cin", "Cout", "Tdel", "buf_size", "power_buf_size"}, " with type '"s + type_name + "'"s, loc_data);// buffer should not have a Cinternal element
3086
3086
3087
3087
} elseif (0 == strcmp(type_name, "pass_gate")) {
3088
3088
type = SwitchType::PASS_GATE;
3089
-
expect_only_attributes(Node, {"type", "name", "R", "Cin", "Cout", "Tdel"}, " with type '"s + type_name + "'"s, loc_data);
3089
+
expect_only_attributes(Node, {"type", "name", "R", "Cin", "Cout", "Tdel"}, " with type '"s + type_name + "'"s, loc_data);// unbuffered switch does not have Cinternal element
3090
3090
3091
3091
} elseif (0 == strcmp(type_name, "short")) {
3092
3092
type = SwitchType::SHORT;
3093
-
expect_only_attributes(Node, {"type", "name", "R", "Cin", "Cout", "Tdel"}, " with type "s + type_name + "'"s, loc_data);
3093
+
expect_only_attributes(Node, {"type", "name", "R", "Cin", "Cout", "Tdel"}, " with type "s + type_name + "'"s, loc_data);// unbuffered switch does not have Cinternal element
device_ctx.rr_switch_inf[rr_switch_idx].Cinternal = device_ctx.arch_switch_inf[arch_switch_idx].Cinternal; //now we can retrieve Cinternal from the arch and implement into the rr calculations.
0 commit comments