disable clangformat where applicable

This commit is contained in:
Miodrag Milanovic 2024-11-29 10:12:05 +01:00
parent 96b073c001
commit dd3d0947e9
3 changed files with 172 additions and 167 deletions

View File

@ -22,7 +22,7 @@
NEXTPNR_NAMESPACE_BEGIN NEXTPNR_NAMESPACE_BEGIN
namespace { namespace {
/* clang-format off */
const Loc ng_ultra_place_cy_map[24] = { const Loc ng_ultra_place_cy_map[24] = {
{ 0, 1, 0}, // S1 0 -> S2 0 CY24->CY1 { 0, 1, 0}, // S1 0 -> S2 0 CY24->CY1
{ 0, 0, -1}, // S1 1 -> S1 0 CY23->CY24 { 0, 0, -1}, // S1 1 -> S1 0 CY23->CY24
@ -442,6 +442,7 @@ const Loc ng_ultra_place_xfifo[] = {
// {+1, 0, 27}, WEQ2 // {+1, 0, 27}, WEQ2
// {+1, 0, 28}, REQ2 // {+1, 0, 28}, REQ2
}; };
/* clang-format on */
}; // namespace }; // namespace

View File

@ -103,8 +103,10 @@ struct NgUltraImpl : HimbaechelAPI
dict<BelId, IdString> unused_pll; dict<BelId, IdString> unused_pll;
dict<BelId, BelId> dsp_cascade; dict<BelId, BelId> dsp_cascade;
/* clang-format off */
TESTABLE_PRIVATE: TESTABLE_PRIVATE:
void write_bitstream_json(const std::string &filename); void write_bitstream_json(const std::string &filename);
/* clang-format on */
void parse_csv(const std::string &filename); void parse_csv(const std::string &filename);
void remove_constants(); void remove_constants();
bool update_bff_to_csc(CellInfo *cell, BelId bel, PipId dst_pip); bool update_bff_to_csc(CellInfo *cell, BelId bel, PipId dst_pip);

View File

@ -75,8 +75,10 @@ struct NgUltraPacker
void insert_bypass_gck(); void insert_bypass_gck();
void insert_csc(); void insert_csc();
/* clang-format off */
TESTABLE_PRIVATE: TESTABLE_PRIVATE:
void set_lut_input_if_constant(CellInfo *cell, IdString input); void set_lut_input_if_constant(CellInfo *cell, IdString input);
/* clang-format on */
void lut_to_fe(CellInfo *lut, CellInfo *fe, bool no_dff, Property lut_table); void lut_to_fe(CellInfo *lut, CellInfo *fe, bool no_dff, Property lut_table);
void dff_to_fe(CellInfo *dff, CellInfo *fe, bool pass_thru_lut); void dff_to_fe(CellInfo *dff, CellInfo *fe, bool pass_thru_lut);
void dff_rewrite(CellInfo *cell); void dff_rewrite(CellInfo *cell);