3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 09:55:20 +00:00

cxxrtl: fix outdated comment. NFC.

This commit is contained in:
whitequark 2020-12-12 20:24:53 +00:00
parent ac1a78923a
commit 57759c3d1f

View file

@ -1157,8 +1157,8 @@ struct CxxrtlWorker {
} }
// The generated code has two bounds checks; one in an assertion, and another that guards the read. // The generated code has two bounds checks; one in an assertion, and another that guards the read.
// This is done so that the code does not invoke undefined behavior under any conditions, but nevertheless // This is done so that the code does not invoke undefined behavior under any conditions, but nevertheless
// loudly crashes if an illegal condition is encountered. The assert may be turned off with -DNDEBUG not // loudly crashes if an illegal condition is encountered. The assert may be turned off with -DCXXRTL_NDEBUG
// just for release builds, but also to make sure the simulator (which is presumably embedded in some // not only for release builds, but also to make sure the simulator (which is presumably embedded in some
// larger program) will never crash the code that calls into it. // larger program) will never crash the code that calls into it.
// //
// If assertions are disabled, out of bounds reads are defined to return zero. // If assertions are disabled, out of bounds reads are defined to return zero.