opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

Make SRAM_INIT_FILE/ROM_INIT_FILE a parameter

Open imphil opened this issue 7 years ago • 9 comments

We want to have multiple sram instances which have a different initialization file. Currently this initialization file name is passed as define, this needs to be a parameter instead.

First discussed in lowRISC/stwg-base#472

imphil avatar May 24 '19 09:05 imphil

@tjaychen have you thought about how this would work?

sjgitty avatar Aug 29 '19 03:08 sjgitty

i should really fix this just for the ROM case.. I'll get on it tomorrow.

Since we actually have a ROM now, the multiple sram instance problem does not technically exist anymore. But if we did need to support it, my thinking would include top_earlgrey.hjson and topgen in somewhat.

In topgen we'd probably specify which init file would go where, and we'd pass that information down through the hierarchy.

tjaychen avatar Sep 20 '19 05:09 tjaychen

@eunchan

tjaychen avatar Sep 20 '19 05:09 tjaychen

since top_gen is using real rom now, this is not really urgent any longer.

tjaychen avatar Sep 26 '19 04:09 tjaychen

@tjaychen if there's no need to support this anymore, suggest we close this. Thanks.

aytong avatar Oct 31 '19 00:10 aytong

i'm fine with that, but it's really @imphil decision.

tjaychen avatar Oct 31 '19 00:10 tjaychen

@imphil, comments? Thanks.

aytong avatar Oct 31 '19 17:10 aytong

This issue is not resolved, we're just not running into it any more. Leaving open as enhancement request for the future.

imphil avatar Oct 31 '19 18:10 imphil

@imphil i think you've already resolved this issue, I'll close it down.

tjaychen avatar Jul 15 '20 18:07 tjaychen