Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
desmonddak committed Nov 12, 2024
1 parent 633ecbb commit 3baa9f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/rohd_hcl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

export 'src/arbiters/arbiters.dart';
export 'src/arithmetic/arithmetic.dart';

export 'src/binary_gray.dart';
export 'src/clock_gating.dart';
export 'src/component_config/component_config.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// Author: Desmond A Kirkpatrick <[email protected]

import 'dart:async';
import 'dart:io';
import 'dart:math';
import 'package:rohd/rohd.dart';
import 'package:rohd_hcl/rohd_hcl.dart';
Expand Down Expand Up @@ -42,9 +41,6 @@ void main() {

final adder = FloatingPointAdderRound(fa, fb, clk: clk);

await adder.build();
File('gen/adder.sv').writeAsStringSync(adder.generateSynth());

unawaited(Simulator.run());
await clk.nextNegedge;
fa.put(0);
Expand Down Expand Up @@ -262,7 +258,6 @@ void main() {
fb.put(0);
final adder = FloatingPointAdderRound(fa, fb);
await adder.build();
File('gen/adder.sv').writeAsStringSync(adder.generateSynth());
unawaited(Simulator.run());
final value = Random(51);

Expand Down
8 changes: 4 additions & 4 deletions test/arithmetic/multiplier_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void main() {
int radix,
ParallelPrefix Function(List<Logic>, Logic Function(Logic, Logic))
ppTree,
{required bool signed,
{bool signed = false,
Logic? selectSigned}) =>
(a, b) => CompressionTreeMultiplier(a, b, radix,
selectSigned: selectSigned,
Expand All @@ -141,7 +141,7 @@ void main() {
int radix,
ParallelPrefix Function(List<Logic>, Logic Function(Logic, Logic))
ppTree,
{required bool signed,
{bool signed = false,
Logic? selectSign}) =>
(a, b, c) => MutiplyOnly(
a,
Expand All @@ -153,7 +153,7 @@ void main() {
MultiplyAccumulateCallback curryMultiplyAccumulate(
int radix,
ParallelPrefix Function(List<Logic>, Logic Function(Logic, Logic)) ppTree, {
required bool signed,
bool signed = false,
Logic? selectSign,
}) =>
(a, b, c) => CompressionTreeMultiplyAccumulate(a, b, c, radix,
Expand Down Expand Up @@ -233,7 +233,7 @@ void main() {
}
});

test('trivial instnatiated multiplier', () async {
test('trivial instantiated multiplier', () async {
const dataWidth = 8;
const av = 12;
const bv = 13;
Expand Down

0 comments on commit 3baa9f0

Please sign in to comment.