Skip to content

Commit

Permalink
Fix interface infer default alignment
Browse files Browse the repository at this point in the history
Alignment must be in bytes
  • Loading branch information
Ansaya committed Oct 28, 2023
1 parent 7582edb commit a4aabbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend_analysis/IR_analysis/InterfaceInfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ DesignFlowStep_Status InterfaceInfer::Exec()
auto& arg_attributes = DesignAttributes.at(arg_name);
arg_attributes[attr_interface_dir] = port_o::GetString(port_o::IN);
arg_attributes[attr_interface_bitwidth] = STR(tree_helper::Size(arg_type));
arg_attributes[attr_interface_alignment] = STR(get_aligned_bitsize(tree_helper::Size(arg_type)));
arg_attributes[attr_interface_alignment] = STR(get_aligned_bitsize(tree_helper::Size(arg_type)) >> 3);
auto& interface_type = arg_attributes.at(attr_interface_type);
if(interface_type == "bus")
{
Expand Down

0 comments on commit a4aabbd

Please sign in to comment.