From: Sahand Kashani Date: Mon, 23 Nov 2020 09:43:59 +0000 (+0100) Subject: Formatting fixes X-Git-Tag: working-ls180~195^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=930a6ae7db905a31d003db0d034177dc0067c84a;p=yosys.git Formatting fixes --- diff --git a/backends/firrtl/firrtl.cc b/backends/firrtl/firrtl.cc index 5c2807ef4..44c3397da 100644 --- a/backends/firrtl/firrtl.cc +++ b/backends/firrtl/firrtl.cc @@ -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: // @@ -194,12 +191,12 @@ std::string dump_const(const RTLIL::Const &data) // precision, then yosys considers the value you used as an int and // assigns it a width of 32 bits regardless of the type of the parameter. // - // defparam .test_signed = 49; (width = 32, though should be 27 based on definition) - // defparam .test_unsigned = 40'd35; (width = 40, though should be 27 based on definition) - // defparam .test_signed_large = 40'd12; (width = 40) + // defparam .test_signed = 49; (width = 32, though should be 27 based on definition) + // defparam .test_unsigned = 40'd35; (width = 40, though should be 27 based on definition) + // defparam .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"; @@ -329,7 +326,7 @@ void emit_extmodule(RTLIL::Cell *cell, RTLIL::Module *mod_instance, std::ostream * and emit parameterized extmodules with a unique name for each of them. The * name that's given to the extmodule is * - * _ + * _ * * Beware that it is therefore necessary for users to replace "parameterized" * instances in the RTLIL sense with these custom extmodules for the firrtl to