Revision 8a57f3b03992351f46c4537fd0d9351592278d2b (click the page title to view the current version)

eCos/model

Changes from 8a57f3b03992351f46c4537fd0d9351592278d2b to 9e983db875a7f9a13baff48582659063978d5f1a
---
title: eCos CDL model sample
...

The model comes from the [ASE paper](http://gsd.uwaterloo.ca/node/251)
The model comes from the [ASE paper](https://gsd.uwaterloo.ca/publications/view/251.html)

```clafer
MISC_FILESYSTEMS ?
    display -> string = "Miscellaneous filesystems"
    CYGPKG_FS_JFFS2 ?
        display -> string = "Journalling Flash File System"
        [CYGPKG_CRC]
        [MTD]

        CYGOPT_FS_JFFS2_DEBUG -> int
            [this = 0]  // default
            display -> string = "Debug level"
            [0 <= this && this <= 2]
            description -> string = "Debug verbosity of...."

        CYGOPT_FS_JFFS2_NAND ?
        [CYGOPT_FS_JFFS2_NAND <=> HAS_IOMEM]

        [CYGOPT_FS_JFFS2_COMPRESS] // default
        CYGOPT_FS_JFFS2_COMPRESS ?
            display -> string = "Compress data"

            [CYGOPT_FS_JFFS2_COMPRESS_ZLIB ] // default
            CYGOPT_FS_JFFS2_COMPRESS_ZLIB ?
                display -> string = "Compress data using zlib"
                [CYGPKG_COMPRESS_ZLIB]

            CYGOPT_FS_JFFS2_COMPRESS_CMODE -> string
                [this = "PRIORITY"] // default
                display -> string = "Set the default compression mode"
                [this = "NONE" || this = "PRIORITY" || this = "SIZE"]
```

Below are dummy clafer names used in the model above.

```clafer
CYGPKG_CRC
MTD
CYGPKG_COMPRESS_ZLIB
HAS_IOMEM
```