mirror of https://github.com/YosysHQ/yosys.git
Formatting fixes
This commit is contained in:
parent
5157f5623e
commit
930a6ae7db
|
@ -178,11 +178,8 @@ std::string dump_const(const RTLIL::Const &data)
|
|||
else
|
||||
{
|
||||
// If value is larger than 32 bits, then emit a binary representation of
|
||||
// the number. We have to do this as firrtl number literals don't support
|
||||
// specifying their width, therefore a binary literal is the only way to
|
||||
// guarantee the parameter widths match that provided on the RHS of a
|
||||
// verilog parameter assignment. There is a caveat to this approach
|
||||
// though:
|
||||
// the number as integers are not large enough to contain the result.
|
||||
// There is a caveat to this approach though:
|
||||
//
|
||||
// Note that parameter may be defined as having a fixed width as follows:
|
||||
//
|
||||
|
@ -199,7 +196,7 @@ std::string dump_const(const RTLIL::Const &data)
|
|||
// defparam <inst_name> .test_signed_large = 40'd12; (width = 40)
|
||||
//
|
||||
// We therefore may lose the precision of the original verilog literal if
|
||||
// it was written without it's bitwidth specifier.
|
||||
// it was written without its bitwidth specifier.
|
||||
|
||||
// Emit binary prefix for string.
|
||||
res_str += "\"b";
|
||||
|
|
Loading…
Reference in New Issue