opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

reggen: Avoid whitespace large blocks of whitespace output

Open imphil opened this issue 7 years ago • 4 comments

Originally posted by @sjgitty in https://github.com/lowRISC/stwg-base/diffs/4

hw/ip/gpio/rtl/gpio_reg_top.sv has a large amount of whitespace around line 1120. Investigate where this is coming from and improve the script based on it.

imphil avatar May 08 '19 16:05 imphil

I don't think gpio_reg_top.sv has that much of lines. It has currently 822 lines

eunchan avatar May 08 '19 17:05 eunchan

This was raised in https://github.com/lowRISC/stwg-base/pull/333/files#r282153160 and it seems that while currently the file is fine, with the changed input JSON in PR lowRISC/stwg-base#333 it triggers more whitespace output.

(If you cannot reproduce it right now we can leave it open until after lowRISC/stwg-base#333 goes in.)

imphil avatar May 08 '19 17:05 imphil

OK. I will take a look after the PR is merged.

eunchan avatar May 08 '19 18:05 eunchan

On a mission to clean up old issues, scraping from stalest to freshest.

The spacing here is much improved, closing this one.

sjgitty avatar Dec 05 '19 02:12 sjgitty