mistral: some more M10K fixes
This commit is contained in:
parent
da65afc83b
commit
9be65cd67c
@ -126,7 +126,7 @@ struct MistralBitgen
|
||||
// DATA_FLOW_THRU is probably transparent reads.
|
||||
|
||||
cv->bmux_b_set(CycloneV::M10K, pos, CycloneV::A_DATA_FLOW_THRU, bi, 1);
|
||||
cv->bmux_n_set(CycloneV::M10K, pos, CycloneV::A_DATA_WIDTH, bi, ci->attrs[id_CFG_DBITS].as_int64());
|
||||
cv->bmux_n_set(CycloneV::M10K, pos, CycloneV::A_DATA_WIDTH, bi, ci->params.at(id_CFG_DBITS).as_int64());
|
||||
cv->bmux_m_set(CycloneV::M10K, pos, CycloneV::A_FAST_WRITE, bi, CycloneV::FAST);
|
||||
cv->bmux_m_set(CycloneV::M10K, pos, CycloneV::A_OUTPUT_SEL, bi, CycloneV::REG);
|
||||
cv->bmux_r_set(CycloneV::M10K, pos, CycloneV::A_SA_WREN_DELAY, bi, 1);
|
||||
@ -135,7 +135,7 @@ struct MistralBitgen
|
||||
cv->bmux_r_set(CycloneV::M10K, pos, CycloneV::A_WR_TIMER_PULSE, bi, 0x0b);
|
||||
|
||||
cv->bmux_r_set(CycloneV::M10K, pos, CycloneV::B_DATA_FLOW_THRU, bi, 1);
|
||||
cv->bmux_n_set(CycloneV::M10K, pos, CycloneV::B_DATA_WIDTH, bi, ci->attrs[id_CFG_DBITS].as_int64());
|
||||
cv->bmux_n_set(CycloneV::M10K, pos, CycloneV::B_DATA_WIDTH, bi, ci->params.at(id_CFG_DBITS).as_int64());
|
||||
cv->bmux_m_set(CycloneV::M10K, pos, CycloneV::B_FAST_WRITE, bi, CycloneV::FAST);
|
||||
cv->bmux_m_set(CycloneV::M10K, pos, CycloneV::B_OUTPUT_SEL, bi, CycloneV::REG);
|
||||
cv->bmux_r_set(CycloneV::M10K, pos, CycloneV::B_SA_WREN_DELAY, bi, 1);
|
||||
|
@ -399,9 +399,9 @@ struct MistralPacker
|
||||
// It *does* generate ACLR[01] but leaves them unconnected if unused.
|
||||
|
||||
// Enables.
|
||||
// RDEN[0] and WREN[1] are left unconnected.
|
||||
ci->pin_data[ctx->id("A1EN")].bel_pins = {ctx->id("RDEN[1]")};
|
||||
ci->pin_data[ctx->id("B1EN")].bel_pins = {ctx->id("WREN[0]")};
|
||||
// RDEN[1] and WREN[0] are left unconnected.
|
||||
ci->pin_data[ctx->id("A1EN")].bel_pins = {ctx->id("WREN[1]")};
|
||||
ci->pin_data[ctx->id("B1EN")].bel_pins = {ctx->id("RDEN[0]")};
|
||||
|
||||
// Clocks.
|
||||
ci->pin_data[ctx->id("CLK1")].bel_pins = {ctx->id("CLKIN[0]")};
|
||||
@ -451,8 +451,6 @@ struct MistralPacker
|
||||
}
|
||||
for (int bit = 0; bit < dbits; bit++) {
|
||||
for (int offset : offsets) {
|
||||
log_info("%s %s\n", ctx->nameOf(ctx->id(stringf("A1DATA[%d]", bit))),
|
||||
ctx->nameOf(ctx->id(stringf("DATAAIN[%d]", bit + offset))));
|
||||
ci->pin_data[ctx->id(stringf("A1DATA[%d]", bit))].bel_pins.push_back(
|
||||
ctx->id(stringf("DATAAIN[%d]", bit + offset)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user