Tidy up whitespace in generated package. #148

This commit is contained in:
Alex Mykyta
2025-07-01 16:56:41 -07:00
parent 105abdcba2
commit a917164642
3 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ class Hwif:
def get_extra_package_params(self) -> str:
lines = []
lines = [""]
for param in self.top_node.inst.parameters:
value = param.get_value()
@@ -70,7 +70,7 @@ class Hwif:
"""
If this hwif requires a package, generate the string
"""
lines = []
lines = [""]
gen_in = self._gen_in_cls(self)
structs_in = gen_in.get_struct(

View File

@@ -7,8 +7,8 @@ package {{ds.package_name}};
localparam {{ds.module_name.upper()}}_MIN_ADDR_WIDTH = {{ds.addr_width}};
localparam {{ds.module_name.upper()}}_SIZE = {{SVInt(ds.top_node.size)}};
{{hwif.get_extra_package_params()|indent}}
{{-hwif.get_extra_package_params()|indent}}
{{hwif.get_package_contents()|indent}}
{{-hwif.get_package_contents()|indent}}
endpackage
{# (eof newline anchor) #}

View File

@@ -5,7 +5,7 @@ addrmap top #(
) {
reg reg_t {
regwidth = REGWIDTH;
field {sw=rw; hw=na;} f[REGWIDTH] = 1;
field {sw=rw; hw=r;} f[REGWIDTH] = 1;
};
reg_t regs[N_REGS];
};