diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-07-10 13:17:38 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-07-10 13:17:38 +0200 |
commit | 9557fd2a3607261a612cabef47b0877dc59f506c (patch) | |
tree | 7a0251b8db4ac7f0e07909887fb776f3bd6c7b46 /backends | |
parent | 8a69759306b7fa510a4834d7da96b7dd29a757d4 (diff) | |
download | yosys-9557fd2a3607261a612cabef47b0877dc59f506c.tar.gz yosys-9557fd2a3607261a612cabef47b0877dc59f506c.tar.bz2 yosys-9557fd2a3607261a612cabef47b0877dc59f506c.zip |
Add attributes and parameter support to JSON front-end
Diffstat (limited to 'backends')
-rw-r--r-- | backends/json/json.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/json/json.cc b/backends/json/json.cc index f3969d0e6..d3b7077a2 100644 --- a/backends/json/json.cc +++ b/backends/json/json.cc @@ -201,6 +201,8 @@ struct JsonWriter void write_design(Design *design_) { design = design_; + design->sort(); + f << stringf("{\n"); f << stringf(" \"creator\": %s,\n", get_string(yosys_version_str).c_str()); f << stringf(" \"modules\": {\n"); |