Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr into ice40gfx
This commit is contained in:
commit
87d88048ac
@ -26,6 +26,7 @@ qt5_add_resources(GUI_RESOURCE_FILES ${_RESOURCES})
|
|||||||
set(GUI_LIBRARY_FILES_${ufamily} Qt5::Widgets Qt5::OpenGL ${OPENGL_LIBRARIES} QtPropertyBrowser PARENT_SCOPE)
|
set(GUI_LIBRARY_FILES_${ufamily} Qt5::Widgets Qt5::OpenGL ${OPENGL_LIBRARIES} QtPropertyBrowser PARENT_SCOPE)
|
||||||
|
|
||||||
add_library(gui_${family} STATIC ${GUI_SOURCE_FILES} ${PYTHON_CONSOLE_SRC} ${GUI_RESOURCE_FILES})
|
add_library(gui_${family} STATIC ${GUI_SOURCE_FILES} ${PYTHON_CONSOLE_SRC} ${GUI_RESOURCE_FILES})
|
||||||
|
include(${family}/family.cmake)
|
||||||
|
|
||||||
target_include_directories(gui_${family} PRIVATE ../${family} ${family} ../3rdparty/QtPropertyBrowser/src)
|
target_include_directories(gui_${family} PRIVATE ../${family} ${family} ../3rdparty/QtPropertyBrowser/src)
|
||||||
if (BUILD_PYTHON)
|
if (BUILD_PYTHON)
|
||||||
|
0
gui/generic/family.cmake
Normal file
0
gui/generic/family.cmake
Normal file
3
gui/ice40/family.cmake
Normal file
3
gui/ice40/family.cmake
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if(ICE40_HX1K_ONLY)
|
||||||
|
target_compile_definitions(gui_${family} PRIVATE ICE40_HX1K_ONLY=1)
|
||||||
|
endif()
|
@ -220,12 +220,16 @@ QStringList getSupportedPackages(ArchArgs::ArchArgsTypes chip)
|
|||||||
void MainWindow::new_proj()
|
void MainWindow::new_proj()
|
||||||
{
|
{
|
||||||
QMap<QString, int> arch;
|
QMap<QString, int> arch;
|
||||||
|
#ifdef ICE40_HX1K_ONLY
|
||||||
|
arch.insert("Lattice HX1K", ArchArgs::HX1K);
|
||||||
|
#else
|
||||||
arch.insert("Lattice LP384", ArchArgs::LP384);
|
arch.insert("Lattice LP384", ArchArgs::LP384);
|
||||||
arch.insert("Lattice LP1K", ArchArgs::LP1K);
|
arch.insert("Lattice LP1K", ArchArgs::LP1K);
|
||||||
arch.insert("Lattice HX1K", ArchArgs::HX1K);
|
arch.insert("Lattice HX1K", ArchArgs::HX1K);
|
||||||
arch.insert("Lattice UP5K", ArchArgs::UP5K);
|
arch.insert("Lattice UP5K", ArchArgs::UP5K);
|
||||||
arch.insert("Lattice LP8K", ArchArgs::LP8K);
|
arch.insert("Lattice LP8K", ArchArgs::LP8K);
|
||||||
arch.insert("Lattice HX8K", ArchArgs::HX8K);
|
arch.insert("Lattice HX8K", ArchArgs::HX8K);
|
||||||
|
#endif
|
||||||
bool ok;
|
bool ok;
|
||||||
QString item = QInputDialog::getItem(this, "Select new context", "Chip:", arch.keys(), 0, false, &ok);
|
QString item = QInputDialog::getItem(this, "Select new context", "Chip:", arch.keys(), 0, false, &ok);
|
||||||
if (ok && !item.isEmpty()) {
|
if (ok && !item.isEmpty()) {
|
||||||
|
@ -98,12 +98,16 @@ int main(int argc, char *argv[])
|
|||||||
options.add_options()("seed", po::value<int>(), "seed value for random number generator");
|
options.add_options()("seed", po::value<int>(), "seed value for random number generator");
|
||||||
options.add_options()("version,V", "show version");
|
options.add_options()("version,V", "show version");
|
||||||
options.add_options()("tmfuzz", "run path delay estimate fuzzer");
|
options.add_options()("tmfuzz", "run path delay estimate fuzzer");
|
||||||
|
#ifdef ICE40_HX1K_ONLY
|
||||||
|
options.add_options()("hx1k", "set device type to iCE40HX1K");
|
||||||
|
#else
|
||||||
options.add_options()("lp384", "set device type to iCE40LP384");
|
options.add_options()("lp384", "set device type to iCE40LP384");
|
||||||
options.add_options()("lp1k", "set device type to iCE40LP1K");
|
options.add_options()("lp1k", "set device type to iCE40LP1K");
|
||||||
options.add_options()("lp8k", "set device type to iCE40LP8K");
|
options.add_options()("lp8k", "set device type to iCE40LP8K");
|
||||||
options.add_options()("hx1k", "set device type to iCE40HX1K");
|
options.add_options()("hx1k", "set device type to iCE40HX1K");
|
||||||
options.add_options()("hx8k", "set device type to iCE40HX8K");
|
options.add_options()("hx8k", "set device type to iCE40HX8K");
|
||||||
options.add_options()("up5k", "set device type to iCE40UP5K");
|
options.add_options()("up5k", "set device type to iCE40UP5K");
|
||||||
|
#endif
|
||||||
options.add_options()("freq", po::value<double>(), "set target frequency for design in MHz");
|
options.add_options()("freq", po::value<double>(), "set target frequency for design in MHz");
|
||||||
options.add_options()("no-tmdriv", "disable timing-driven placement");
|
options.add_options()("no-tmdriv", "disable timing-driven placement");
|
||||||
options.add_options()("package", po::value<std::string>(), "set device package");
|
options.add_options()("package", po::value<std::string>(), "set device package");
|
||||||
|
Loading…
Reference in New Issue
Block a user