Skip to content

Commit

Permalink
increase cap factor
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulk29 committed Oct 15, 2024
1 parent bd31929 commit 5ba3a38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/blocks/decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct PlanTreeNode {
impl DecoderTree {
pub fn new(bits: usize, cload: f64) -> Self {
let plan = plan_decoder(bits, true, false);
let stages = (cload / INV_MODEL.cin * plan.le_b()).log(3.).ceil() as usize;
let stages = (cload / INV_MODEL.cin * plan.le_b()).log(4.).ceil() as usize;
let depth = plan.min_depth();
println!("target num stages = {stages}, current min num stages = {depth}");
let plan = if stages > depth {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/sram/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl Script for SramPhysicalDesignScript {
params: &Self::Params,
ctx: &substrate::data::SubstrateCtx,
) -> substrate::error::Result<Self::Output> {
let wl_cap = (params.cols() + 4) as f64 * WORDLINE_CAP_PER_CELL * 1.5; // Safety factor.
let wl_cap = (params.cols() + 4) as f64 * WORDLINE_CAP_PER_CELL * 2.; // Safety factor.
let col_params = params.col_params();
let cols = ctx.instantiate_layout::<ColPeripherals>(&col_params)?;
let rbl_rows = ((params.rows() / 12) + 1) * 2;
Expand Down

0 comments on commit 5ba3a38

Please sign in to comment.