Skip to content

Commit 608fae0

Browse files
committed
Make sure clk is in the reduction
1 parent d23527d commit 608fae0

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎config/settings.toml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[settings]
22
max_iter = 1000
3-
stop_iter_lambda = 20
3+
stop_iter_lambda = 10
44
start_input_lambda = 2
55
start_undriven_lambda = 2
66
prob_sequential_module = 0.1
7-
prob_sequential_port = 0.2
7+
prob_sequential_port = 0.05
88

99
[priorities]
10-
AddRandomModule = 20
11-
AddExternalNet = 5
10+
AddRandomModule = 10
11+
AddExternalNet = 2
1212
AddUndriveNet = 10
1313
DriveUndrivenNet = 15
1414
DriveUndrivenNets = 0

‎flake.nix‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
fuznet = pkgs.stdenv.mkDerivation {
3838
pname = "fuznet";
39-
version = "0.5.0";
39+
version = "0.5.2";
4040
src = ./.;
4141

4242
nativeBuildInputs = with pkgs; [ cmake ];

‎src/netlist/netlist.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ void Netlist::remove_other_nets(const int& output_id) {
340340

341341
}
342342

343+
for (const auto& net_ptr : nets)
344+
if (net_ptr->name == "clk")
345+
keep_nets.insert(net_ptr->id);
346+
343347
modules.erase(
344348
std::remove_if(modules.begin(), modules.end(),
345349
[&](const std::unique_ptr<Module>& m) {

0 commit comments

Comments
 (0)