trying different area sizes but facing unspecified hardening errors
diff --git a/openlane/btc_miner_top/config.tcl b/openlane/btc_miner_top/config.tcl index b03d7d0..36b0bc6 100755 --- a/openlane/btc_miner_top/config.tcl +++ b/openlane/btc_miner_top/config.tcl
@@ -38,13 +38,13 @@ # no matter what PL or GLB parameters I set. tried increasing both HOLD_MAX_BUFFER_PERCENT and HOLD_SLACK_MARGIN to 80% and 0.3ns set ::env(FP_SIZING) absolute # max area in wrapper: 0 0 2920 3520 -set ::env(DIE_AREA) "0 0 2920 3520" +set ::env(DIE_AREA) "0 0 20000 20000" set ::env(FP_PIN_ORDER_CFG) $script_dir/pin_order.cfg set ::env(PL_BASIC_PLACEMENT) 0 -set ::env(PL_TARGET_DENSITY) 0.98 -set ::env(FP_CORE_UTIL) 95 +set ::env(PL_TARGET_DENSITY) 0.7 +set ::env(FP_CORE_UTIL) 80 # with 10%: detailed placement faild and had setup violations # with 50%: detailed placement faild and had setup violations # with 100% and 0.7: "Utilization exceeds 100%." Ran out of space?
diff --git a/verilog/rtl/btc_miner_top.v b/verilog/rtl/btc_miner_top.v index 33ccdb9..91c963d 100644 --- a/verilog/rtl/btc_miner_top.v +++ b/verilog/rtl/btc_miner_top.v
@@ -267,14 +267,11 @@ assign sha_address = auto_ctrl ? reg_sha_address : la_input3[7:0]; assign sha_ctrl_bits = la_input3[18:16]; - // need to count to 640/32 = 20 (decimal). Only to 19 b/c nonce is last 32-bits - integer unsigned count; always @(posedge clk) begin if (rst) begin - ready <= 0; rdata <= 0; - count <= 0; + ready <= 0; reg_sha_cs <= 0; reg_sha_we <= 0; reg_sha_address <= 0; @@ -367,7 +364,7 @@ if (wb_wr_mask == 4'b0000) begin rdata <= sha_read_data; - if ((sha_ctrl_bits[2] == MODE_SHA_256) && sha_address == ADDR_DIGEST7) begin + if ((sha_ctrl_bits[2] == MODE_SHA_256) && (sha_address == ADDR_DIGEST7)) begin reg_sha_address <= ADDR_STATUS; state <= WAIT_IN; end else if ((sha_ctrl_bits[2] == MODE_SHA_224) && (sha_address == ADDR_DIGEST6)) begin