Skip to content

Commit 1951d17

Browse files
committed
fixed recent analyzer failure (version change)
1 parent 60974d7 commit 1951d17

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

doc/tutorials/chapter_6/answers/exercise_2_n_bit_subtractor.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import '../../chapter_3/answers/helper.dart';
77
import '../../chapter_5/answers/full_subtractor.dart';
88

99
class FullSubtractorComb extends FullSubtractor {
10-
@override
1110
FullSubtractorComb(super.a, super.b, super.borrowIn) {
1211
// Declare input and output
1312
final a = input('a');

lib/src/utilities/systemc_cosim_ffi.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ class SystemCFfiCosim {
268268
.split('\n')
269269
.where((line) => !line.contains('Generation time:'))
270270
.join('\n');
271-
final contentHash =
272-
stableCode.hashCode.toUnsigned(32).toRadixString(16);
271+
final contentHash = stableCode.hashCode.toUnsigned(32).toRadixString(16);
273272
final uniqueName = '${module.definitionName}_$contentHash';
274273

275274
// Rename the top-level SC_MODULE in the generated code to the unique name
@@ -675,8 +674,8 @@ class SystemCFfiCosim {
675674
..writeln()
676675
..writeln(' auto* ctx = new CosimContext();')
677676

678-
// Instantiate DUT
679-
..writeln(' ctx->dut = new $topModule("dut");');
677+
// Instantiate DUT
678+
..writeln(' ctx->dut = new $topModule("dut");');
680679

681680
// Bind all inputs (including clocks — driven via sc_signal<bool>)
682681
for (final name in _inputWidths.keys) {

0 commit comments

Comments
 (0)