#include QMK_KEYBOARD_H #include "keymap_german.h" #define BASE 0 // default layer / VIM #define ARW 1 // arrow layer / Terminal #define DIAK 2 // diakritika layer #define BRACK 3 // brackets layer #define SYMBOLS 4 // symbols #define MEDIA 5 // media keys / Mouse-Navigation const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* Keymap 0: Basic layer / VIM * ,--------------------------------------------------. ,--------------------------------------------------. * | | 1 | 2 | 3 | 4 | 5 | | | | 6 | 7 | 8 | 9 | 0 | Media | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| * | | P | U | Dia-L| , | Q | | | | V | C | L | M | B | | * |--------+------+------+------+------+------| G | | gg |------+------+------+------+------+--------| * | Symbols| H | I | E | A | O |------| |------| D | T | R | N | S | ARW | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | LShift | K | Y | . | ' | X |str-D | |str-U | J | G | Z | W | F | RShift | * * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' * | Ctrl | Alt | | | | | H | J | K | L | Ctrl | * `----------------------------------' `----------------------------------' * LShift is Tab on Click * * ,-------------. ,-------------. * | ^ | / | | ? | $ | * ,------|------|------| |------+--------+------. * | | |str+a | |str+c | | | * | Brack| Space|------| |------| Enter |BSpace| * | -Lay |/shift| Tab/ | | | | | * | | | GUI | | ESC | | | * `--------------------' `----------------------' * GUI is one shot * str + a is for tmux etc. * str + c is for stopping programs */ [BASE] = LAYOUT_ergodox( // layer 0 : default // left hand KC_NO, KC_1, KC_2, KC_3, KC_4, KC_5, KC_NO, TG(SYMBOLS), DE_P, DE_U, OSL(DIAK), DE_COMM, DE_Q, LSFT(DE_G), OSL(SYMBOLS), DE_H, DE_I, DE_E, DE_A, DE_O, SFT_T(KC_TAB), DE_K, DE_Y, DE_DOT, DE_QUOT, DE_X, LCTL(DE_D), KC_LCTRL, KC_LALT, KC_NO, KC_NO, KC_NO, // left hand thumb-cluster DE_CIRC, DE_SLSH, LCTL(DE_A), OSL(BRACK), SFT_T(KC_SPACE), GUI_T(KC_TAB), // right hand KC_NO, KC_6, KC_7, KC_8, KC_9, KC_0, TG(MEDIA), DE_G, DE_V, DE_C, DE_L, DE_M, DE_B, KC_NO, DE_D, DE_T, DE_R, DE_N, DE_S, TG(ARW), LCTL(DE_U), DE_J, DE_G, DE_Z, DE_W, DE_F, KC_RSFT, KC_H, KC_J, KC_K, KC_L, KC_RCTRL, // right thumb-cluster DE_QST, DE_DLR, LCTL(DE_C), KC_ESCAPE, KC_ENTER, KC_BSPACE ), /* Keymap 1: Arrow Layer / Terminal * * ,--------------------------------------------------. ,--------------------------------------------------. * | | | | | | | | | | | | | | | | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| * | | | | | | | | | | | | | | | | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | | | | | | |------| |------| | | | | | | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | | | | | | |P-Down| |P-Up | | | |
/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2019 David Shah <dave@ds0.me>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*/
#include "nextpnr.h"
NEXTPNR_NAMESPACE_BEGIN
struct Router2Cfg
{
Router2Cfg(Context *ctx);
// Maximum iterations for backwards routing attempt
int backwards_max_iter;
// Maximum iterations for backwards routing attempt for global nets
int global_backwards_max_iter;
// Padding added to bounding boxes to account for imperfect routing,
// congestion, etc
int bb_margin_x, bb_margin_y;
// Cost factor added to input pin wires; effectively reduces the
// benefit of sharing interconnect
float ipin_cost_adder;
// Cost factor for "bias" towards center location of net
float bias_cost_factor;
// Starting current and historical congestion cost factor
float init_curr_cong_weight, hist_cong_weight;
// Current congestion cost multiplier
float curr_cong_mult;
// Weight given to delay estimate in A*. Higher values
// mean faster and more directed routing, at the risk
// of choosing a less congestion/delay-optimal route
float estimate_weight;
// Print additional performance profiling information
bool perf_profile = false;
};
void router2(Context *ctx, const Router2Cfg &cfg);
NEXTPNR_NAMESPACE_END