fpga-tool-perf icon indicating copy to clipboard operation
fpga-tool-perf copied to clipboard

Bitstream generation fails due to missing features

Open acomodi opened this issue 3 years ago • 0 comments

The picosoc test that uses the nextpnr interchange support fails at the bitstream generation with the following error:

    "error_msg": [
        "[...]",
        "/nextpnr-env/lib/python3.7/site-packages/xc_fasm/fasm2frames.py\", line 194, in fasm2frames",
        "    assembler.parse_fasm_filename(filename_in, extra_features=extra_features)",
        "  File \"/data/f4pga/fpga-tool-perf/env/conda/envs/nextpnr-env/lib/python3.7/site-packages/prjxray/fasm_assembler.py\", line 190, in parse_fasm_filename",
        "    raise FasmLookupError('\\n'.join(missing_features))",
        "prjxray.fasm_assembler.FasmLookupError: Segment DB BRAM_L, key BRAM_L.RAMB18_Y1.WRITE_MODE_A_WRITE_FIRST not found from line 'BRAM_L_X6Y25.RAMB18_Y1.WRITE_MODE_A_WRITE_FIRST'",
        "Segment DB BRAM_L, key BRAM_L.RAMB18_Y1.WRITE_MODE_B_WRITE_FIRST not found from line 'BRAM_L_X6Y25.RAMB18_Y1.WRITE_MODE_B_WRITE_FIRST'",
        "Segment DB BRAM_L, key BRAM_L.RAMB18_Y0.WRITE_MODE_A_WRITE_FIRST not found from line 'BRAM_L_X6Y35.RAMB18_Y0.WRITE_MODE_A_WRITE_FIRST'",
        "Segment DB BRAM_L, key BRAM_L.RAMB18_Y0.WRITE_MODE_B_WRITE_FIRST not found from line 'BRAM_L_X6Y35.RAMB18_Y0.WRITE_MODE_B_WRITE_FIRST'",
        "make: *** [Makefile:29: picosoc.bit] Error 1",
        ""
    ],

The prjxray-db is missing the WRITE_MODE_[AB]_WRITE_FIRST features.

Until the FASM features are added to prjxray-db, the following line should be commented out: https://github.com/chipsalliance/fpga-tool-perf/blob/main/project/picosoc.yaml#L21

acomodi avatar Jul 14 '22 09:07 acomodi