diff options
author | William D. Jones <thor0505@comcast.net> | 2021-01-31 00:45:08 -0500 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-02-12 10:36:59 +0000 |
commit | 0d00c10e2f3dfdc188f598e17c8aa89a9c502f55 (patch) | |
tree | 63cb1c4d05210fcb1b032635ff12702626a898d2 | |
parent | 884e7d9a9820a5eaff000a3ee8a5d56d1e15d50b (diff) | |
download | nextpnr-0d00c10e2f3dfdc188f598e17c8aa89a9c502f55.tar.gz nextpnr-0d00c10e2f3dfdc188f598e17c8aa89a9c502f55.tar.bz2 nextpnr-0d00c10e2f3dfdc188f598e17c8aa89a9c502f55.zip |
machxo2: Add bitstream generation for OSCH.
-rw-r--r-- | machxo2/bitstream.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/machxo2/bitstream.cc b/machxo2/bitstream.cc index 450ab140..23cc1b8c 100644 --- a/machxo2/bitstream.cc +++ b/machxo2/bitstream.cc @@ -200,6 +200,10 @@ void write_bitstream(Context *ctx, std::string text_config_file) std::string dir = str_or_default(ci->params, ctx->id("DIR"), "INPUT"); std::string pic_tile = get_pic_tile(ctx, bel); cc.tiles[pic_tile].add_enum(pio + ".BASE_TYPE", dir + "_" + iotype); + } else if (ci->type == ctx->id("OSCH")) { + std::string freq = str_or_default(ci->params, ctx->id("NOM_FREQ"), "2.08"); + cc.tiles[ctx->getTileByType("CFG1")].add_enum("OSCH.MODE", "OSCH"); + cc.tiles[ctx->getTileByType("CFG1")].add_enum("OSCH.NOM_FREQ", freq); } } |