nexus: Fix default IO config

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-03-29 21:35:44 +01:00
parent 0b1e089547
commit a6a92f6b6b

View File

@ -365,6 +365,8 @@ struct NexusFasmWriter
const char *iodir = is_input ? "INPUT" : (is_output ? "OUTPUT" : "BIDIR");
write_bit(stringf("BASE_TYPE.%s_%s", iodir, str_or_default(cell->attrs, id_IO_TYPE, "LVCMOS33").c_str()));
write_ioattr(cell, "PULLMODE", "NONE");
write_ioattr(cell, "GLITCHFILTER", "OFF");
write_ioattr(cell, "SLEWRATE", "MED");
write_cell_muxes(cell);
pop();
}