Skip to content

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.

3 participants