cyclonev: Add some useful constids
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
0533818cee
commit
7e57196cf9
@ -26,6 +26,15 @@ NEXTPNR_NAMESPACE_BEGIN
|
||||
|
||||
using namespace mistral;
|
||||
|
||||
void IdString::initialize_arch(const BaseCtx *ctx)
|
||||
{
|
||||
#define X(t) initialize_add(ctx, #t, ID_##t);
|
||||
|
||||
#include "constids.inc"
|
||||
|
||||
#undef X
|
||||
}
|
||||
|
||||
Arch::Arch(ArchArgs args)
|
||||
{
|
||||
this->args = args;
|
||||
|
@ -33,6 +33,22 @@ using mistral::CycloneV;
|
||||
|
||||
typedef int delay_t;
|
||||
|
||||
// https://bugreports.qt.io/browse/QTBUG-80789
|
||||
|
||||
#ifndef Q_MOC_RUN
|
||||
enum ConstIds
|
||||
{
|
||||
ID_NONE
|
||||
#define X(t) , ID_##t
|
||||
#include "constids.inc"
|
||||
#undef X
|
||||
};
|
||||
|
||||
#define X(t) static constexpr auto id_##t = IdString(ID_##t);
|
||||
#include "constids.inc"
|
||||
#undef X
|
||||
#endif
|
||||
|
||||
struct DelayInfo
|
||||
{
|
||||
delay_t delay = 0;
|
||||
|
51
cyclonev/constids.inc
Normal file
51
cyclonev/constids.inc
Normal file
@ -0,0 +1,51 @@
|
||||
X(MISTRAL_COMB)
|
||||
X(MISTRAL_FF)
|
||||
X(LAB)
|
||||
X(MLAB)
|
||||
|
||||
X(A)
|
||||
X(B)
|
||||
X(C)
|
||||
X(D)
|
||||
X(E)
|
||||
X(F)
|
||||
X(E0)
|
||||
X(F0)
|
||||
X(E1)
|
||||
X(F1)
|
||||
X(DATAIN)
|
||||
X(FFT0)
|
||||
X(FFT1)
|
||||
X(FFB0)
|
||||
X(FFB1)
|
||||
X(FFT1L)
|
||||
X(FFB1L)
|
||||
X(CLKIN)
|
||||
X(ACLR)
|
||||
X(CLK)
|
||||
X(ENA)
|
||||
X(SCLR)
|
||||
X(SLOAD)
|
||||
X(SDATA)
|
||||
X(Q)
|
||||
|
||||
X(COMBOUT)
|
||||
X(SUM_OUT)
|
||||
X(CIN)
|
||||
X(SHAREIN)
|
||||
X(COUT)
|
||||
X(SHAREOUT)
|
||||
|
||||
X(MISTRAL_ALUT6)
|
||||
X(MISTRAL_ALUT5)
|
||||
X(MISTRAL_ALUT4)
|
||||
X(MISTRAL_ALUT3)
|
||||
X(MISTRAL_ALUT2)
|
||||
X(MISTRAL_NOT)
|
||||
X(MISTRAL_ALUT_ARITH)
|
||||
|
||||
X(D0)
|
||||
X(D1)
|
||||
X(CI)
|
||||
X(CO)
|
||||
X(SO)
|
Loading…
Reference in New Issue
Block a user