!Feature
next_elt_id: 2
name: Address Misaligned
id: 8
display_order: 8
subfeatures: !!omap
- 000_instr_misaligned: !Subfeature
    name: 000_instr_misaligned
    tag: VP_traps_F008_S000
    next_elt_id: 1
    display_order: 0
    items: !!omap
    - '000': !VerifItem
        name: '000'
        tag: VP_traps_F008_S000_I000
        description: If not aligned address is computed by control-flow instruction,
          a instruction address misaligned exception is taken.
        reqt_doc: Privileged Architecture Version 20211203, Chapter 3.1.15
        ref_mode: page
        ref_page: ''
        ref_section: ''
        ref_viewer: firefox
        verif_goals: Exception is entered with `mcause` set to 0x0.
        pfc: -1
        test_type: -1
        cov_method: -1
        cores: 56
        coverage_loc: ''
        comments: Need to check if such exception is possible with instruction set
- 001_load_misaligned: !Subfeature
    name: 001_load_misaligned
    tag: VP_traps_F008_S001
    next_elt_id: 2
    display_order: 0
    items: !!omap
    - '000': !VerifItem
        name: '000'
        tag: VP_traps_F008_S001_I000
        description: If not aligned load is attempted, a load address misaligned exception
          is taken.
        reqt_doc: Privileged Architecture Version 20211203, Chapter 3.6.3.3
        ref_mode: page
        ref_page: ''
        ref_section: ''
        ref_viewer: firefox
        verif_goals: Exception is entered with `mcause` set to 0x4.
        pfc: -1
        test_type: -1
        cov_method: -1
        cores: 56
        coverage_loc: ''
        comments: ''
    - '001': !VerifItem
        name: '001'
        tag: VP_traps_F008_S001_I001
        description: If not aligned load-reserved is attempted, a load address misaligned
          exception is taken.
        reqt_doc: Privileged Architecture Version 20211203, Chapter 3.6.3.3
        ref_mode: page
        ref_page: ''
        ref_section: ''
        ref_viewer: firefox
        verif_goals: Exception is entered with `mcause` set to 0x4.
        pfc: -1
        test_type: -1
        cov_method: -1
        cores: 40
        coverage_loc: ''
        comments: ''
- 002_store_misaligned: !Subfeature
    name: 002_store_misaligned
    tag: VP_traps_F008_S002
    next_elt_id: 3
    display_order: 0
    items: !!omap
    - '000': !VerifItem
        name: '000'
        tag: VP_traps_F008_S002_I000
        description: If not aligned store is attempted, a store/AMO access misaligned
          exception is taken.
        reqt_doc: Privileged Architecture Version 20211203, Chapter 3.6.3.3
        ref_mode: page
        ref_page: ''
        ref_section: ''
        ref_viewer: firefox
        verif_goals: Exception is entered with `mcause` set to 0x6.
        pfc: -1
        test_type: 3
        cov_method: 1
        cores: 56
        coverage_loc: ''
        comments: ''
    - '001': !VerifItem
        name: '001'
        tag: VP_traps_F008_S002_I001
        description: If not aligned store-conditional is attempted , a store/AMO access
          misaligned exception is taken.
        reqt_doc: Privileged Architecture Version 20211203, Chapter 3.6.3.3
        ref_mode: page
        ref_page: ''
        ref_section: ''
        ref_viewer: firefox
        verif_goals: Exception is entered with `mcause` set to 0x6.
        pfc: -1
        test_type: -1
        cov_method: -1
        cores: 40
        coverage_loc: ''
        comments: ''
    - '002': !VerifItem
        name: '002'
        tag: VP_traps_F008_S002_I002
        description: If not aligned AMO is attempted, a store/AMO access misaligned
          exception is taken.
        reqt_doc: Privileged Architecture Version 20211203, Chapter 3.6.3.3
        ref_mode: page
        ref_page: ''
        ref_section: ''
        ref_viewer: firefox
        verif_goals: Exception is entered with `mcause` set to 0x6.
        pfc: -1
        test_type: -1
        cov_method: -1
        cores: 40
        coverage_loc: ''
        comments: ''
- 003_mtval: !Subfeature
    name: 003_mtval
    tag: VP_traps_F008_S003
    next_elt_id: 1
    display_order: 1
    items: !!omap
    - '000': !VerifItem
        name: '000'
        tag: VP_traps_F008_S003_I000
        description: When an address misaligned exception is raised, the corresponding
          address is stored into `mtval` CSR.
        reqt_doc: Privileged Architecture Version 20211203, Chapter 3.1.16
        ref_mode: page
        ref_page: ''
        ref_section: ''
        ref_viewer: firefox
        verif_goals: Check that when any address misaligned exception is raised, `mtval`
          CSR contains the address of the portion of the access causing the fault.
        pfc: -1
        test_type: -1
        cov_method: -1
        cores: 56
        coverage_loc: ''
        comments: ZERO_TVAL parameter value?
vptool_gitrev: '$Id: b0efb3ae3f9057b71a577d43c2b77f1cfb2ef82f $'
io_fmt_gitrev: '$Id: 7ee5d68801f5498a957bcbe23fcad87817a364c5 $'
config_gitrev: '$Id: 0422e19126dae20ffc4d5a84e4ce3de0b6eb4eb5 $'
ymlcfg_gitrev: '$Id: 286c689bd48b7a58f9a37754267895cffef1270c $'
