new-nvm-subsystem-comp ["name"] ["SN"] [auto_attach_namespaces] [bandwidth] disk_size [dynamic_size] [n_io_controllers] [pcie_gen_speed] [pcie_link_width] [rpmb_data_area_size]
This command creates an instantiated component of the class nvm_subsystem_comp.
The class description for the nvm_subsystem_comp class: A generic NVM Subsystem with support for multiple NVMe controllers
- name is Optional
- If not specified, the component will get a class-specific default name.
- SN is Optional
- The serial number of the NVMe device. Default value is "SIMICS_NVME". With multiple NVMe devices in one system, it is recommended to set a unique serial number for each device.
- auto_attach_namespaces is Optional
- If set to True, namespaces added with the add-namespace command will automatically attached to all I/O controllers, upon instantiation.
- bandwidth is Optional
- The read/write speed of the NVMe disk, provided in MB/s. 0 means instant read/write:s, which is the default value
- disk_size is Required
- The size of the underlying storage for the NVMe drive. The combined size of the namespaces added with the add_namespace command must not exceed this value.
- dynamic_size is Optional
- If set to True, adding a namespace will increase the disk size if needed. This only works before instantiation.
- n_io_controllers is Optional
- The number of NVMe IO controllers in the NVM Subsystem. Default value is 1. May not be higher than 64.
- pcie_gen_speed is Optional
- Based on the value of this parameter, the NVMe PCIe I/O controller will be configured to advertise its maximum supported link and speed. It will advertise the highest supported link speed for the given PCIe generation . Note that this does not set the PCIe version of the NVMe device, as the version of this device is fixed at 6. The value of this parameter must be between 1 and 6. Default value is 5.
- pcie_link_width is Optional
- The maximum link width that the NVMe PCIe I/O controller will advertise. Valid values are 1, 2, 4, 8, or 16. Default value is 8.
- rpmb_data_area_size is Optional
- The size of the RPMB data area in 128 KiB blocks. Default value is 1. Must be a value between 1 (128 KiB) and 255 (32 MiB).
simics-nvme-comp