Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support variants for ECP5 #1154

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Support variants for ECP5 #1154

wants to merge 3 commits into from

Conversation

mmicko
Copy link
Member

@mmicko mmicko commented May 16, 2023

This one also support old style command line parameters so no changes from user perspective.
Fixes parameters validation check and actually displaying the message

@mmicko mmicko requested a review from gatecat May 16, 2023 14:39
ecp5/arch.cc Outdated

static const ChipInfoPOD *get_chip_info(ArchArgs::ArchArgsTypes chip)
static void get_chip_info(std::string device, const DeviceInfoPOD **device_info, const ChipInfoPOD **chip_info, const PackageInfoPOD **package_info,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you create a struct or something for all these fields rather than tons of ** arguments?

ecp5/arch.cc Outdated
*package_name = pkg.name.get();
*device_name = chip.name.get();
*type = Arch::ArchTypes::NONE;
if (strcmp(*device_name,"LFE5U-12F")==0 || strcmp(*device_name,"LAE5U-12F")==0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would definitely prefer using C++ or Boost string stuff to the old C functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants