Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set 32MB RAM as default #9

Open
olofk opened this issue Sep 22, 2016 · 2 comments
Open

Set 32MB RAM as default #9

olofk opened this issue Sep 22, 2016 · 2 comments

Comments

@olofk
Copy link
Member

olofk commented Sep 22, 2016

or1ksim can be launched without a config file, in which case it uses built-in default values. The default value for RAM size is 8MB, but most apps are built for 32MB RAM, and Linux in particular will not work with less. We should change or1ksim to use 32MB as default to avoid having to always load a config file

@jeremybennett
Copy link
Member

jeremybennett commented Sep 22, 2016

I think this was related to the typical FPGAs of a bygone era. I'm happy for the default to be whatever people think is appropriate.

Linux has got bloated - it used to run in 2MB!

@stffrdhrn
Copy link
Member

I started to work on this, but it seems it will require a bit of an overhaul of how peripheral defaults are configured.

  1. During Startup peripherals all register config handlers (i.e. memory is a peripheral)
  2. When config is parsed configured peripherals setup reset handlers + defaults for non configured parameters

The problem is that if there is to config file defaults are not set and reset handlers are not configured. To me it looks like right now the memory is not even initialized if there is no sim.cfg.

Unless you are just saying the default in sim.cfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants