mirror of https://github.com/YosysHQ/nextpnr.git
fix: use the 'b prefix when writing a generic FABulous BEL to FASM, so the value is correctly interpreted in further steps
This commit is contained in:
parent
84856bd669
commit
002c0a1b68
|
|
@ -219,7 +219,7 @@ struct FabFasmWriter
|
|||
} else {
|
||||
// vector type parameter
|
||||
int msb = int(param.second.str.size()) - 1;
|
||||
out << prefix << param.first.c_str(ctx) << "[" << msb << ":0] = ";
|
||||
out << prefix << param.first.c_str(ctx) << "[" << msb << ":0] = 'b";
|
||||
for (auto bit : boost::adaptors::reverse(param.second.str))
|
||||
out << bit;
|
||||
out << std::endl;
|
||||
|
|
|
|||
Loading…
Reference in New Issue