From 7a18d5469d52e18c4e82f8bf83f9d15c753456ee Mon Sep 17 00:00:00 2001 From: Nikita Koss Date: Fri, 22 Sep 2023 00:11:30 +0300 Subject: [PATCH] fix field bit range --- src/html/html_cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html/html_cli.rs b/src/html/html_cli.rs index 19e6eaed..5c07812c 100644 --- a/src/html/html_cli.rs +++ b/src/html/html_cli.rs @@ -217,8 +217,8 @@ fn parse_register( let idxs = format!("[{idx}]"); f.name = f.name.replace("[%s]", &idxs).replace("%s", &idxs); f.bit_range = BitRange::from_offset_width( - f.bit_offset(), - f.bit_width() + (i as u32) * d.dim_increment, + f.bit_offset() + (i as u32) * d.dim_increment, + f.bit_width(), ); f.description = f .description