2024-12-10 22:48:07 +08:00
|
|
|
/*
|
|
|
|
* nextpnr -- Next Generation Place and Route
|
|
|
|
*
|
|
|
|
* Copyright (C) 2024 The Project Peppercorn Authors.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GATEMATE_EXTRA_DATA_H
|
|
|
|
#define GATEMATE_EXTRA_DATA_H
|
|
|
|
|
|
|
|
#include "nextpnr.h"
|
|
|
|
|
|
|
|
NEXTPNR_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
NPNR_PACKED_STRUCT(struct GateMatePipExtraDataPOD {
|
|
|
|
int32_t name;
|
2024-12-16 18:19:56 +08:00
|
|
|
uint8_t bits;
|
|
|
|
uint8_t value;
|
2024-12-25 21:36:33 +08:00
|
|
|
uint8_t flags;
|
2024-12-20 18:03:10 +08:00
|
|
|
uint8_t type;
|
2024-12-10 22:48:07 +08:00
|
|
|
});
|
|
|
|
|
2024-12-26 16:34:24 +08:00
|
|
|
enum MuxFlags
|
|
|
|
{
|
|
|
|
MUX_INVERT = 1,
|
2024-12-25 21:36:33 +08:00
|
|
|
MUX_VISIBLE = 2,
|
|
|
|
};
|
|
|
|
|
2024-12-20 18:03:10 +08:00
|
|
|
enum PipExtra
|
|
|
|
{
|
|
|
|
PIP_EXTRA_MUX = 1,
|
|
|
|
PIP_EXTRA_CPE = 2,
|
|
|
|
};
|
|
|
|
|
2024-12-10 22:48:07 +08:00
|
|
|
NEXTPNR_NAMESPACE_END
|
|
|
|
|
|
|
|
#endif
|