Skip to content

Commit 7b0bd31

Browse files
Merge branch '346-revert-to-crd-terminology' into reduce-duplicate-erb-and-rake
2 parents 49e6c4d + f7f8236 commit 7b0bd31

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2400
-1760
lines changed

.github/workflows/pages.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,37 @@ jobs:
6060
- name: Copy cfg html
6161
run: cp -R gen/cfg_html_doc/generic_rv64/html _site/example_cfg
6262
- name: Create RVA20 Profile Release PDF Spec
63-
run: ./do gen:profile[RVA20]
63+
run: ./do gen:profile_release_pdf[RVA20]
6464
- name: Copy RVA20 Profile Release PDF
6565
run: cp gen/profile_doc/pdf/RVA20.pdf _site/pdfs/RVA20.pdf
6666
- name: Create RVA22 Profile Release PDF Spec
67-
run: ./do gen:profile[RVA22]
67+
run: ./do gen:profile_release_pdf[RVA22]
6868
- name: Copy RVA22 Profile Release PDF
6969
run: cp gen/profile_doc/pdf/RVA22.pdf _site/pdfs/RVA22.pdf
70+
- name: Copy RVA23 Profile Release PDF
71+
run: cp gen/profile_doc/pdf/RVA23.pdf _site/pdfs/RVA23.pdf
72+
- name: Copy RVB23 Profile Release PDF
73+
run: cp gen/profile_doc/pdf/RVB23.pdf _site/pdfs/RVB23.pdf
7074
- name: Create RVI20 Profile Release PDF Spec
71-
run: ./do gen:profile[RVI20]
75+
run: ./do gen:profile_release_pdf[RVI20]
7276
- name: Copy RVI20 Profile Release PDF
7377
run: cp gen/profile_doc/pdf/RVA20.pdf _site/pdfs/RVI20.pdf
7478
- name: Create MC100-32 PDF Spec
75-
run: ./do gen:cert_model_pdf[MC100-32]
79+
run: ./do gen:proc_cert_model_pdf[MC100-32]
7680
- name: Copy MC100-32 PDF
77-
run: cp gen/certificate_doc/pdf/MC100-32.pdf _site/pdfs/MC100-32.pdf
81+
run: cp gen/crd/pdf/MC100-32.pdf _site/pdfs/MC100-32.pdf
7882
- name: Create MC100-32 HTML Spec
79-
run: ./do gen:cert_model_html[MC100-32]
83+
run: ./do gen:proc_cert_model_html[MC100-32]
8084
- name: Copy MC100-32 HTML
81-
run: cp gen/certificate_doc/html/MC100-32.html _site/htmls/MC100-32.html
85+
run: cp gen/crd/html/MC100-32.html _site/htmls/MC100-32.html
8286
- name: Create MC100-64 PDF Spec
83-
run: ./do gen:cert_model_pdf[MC100-64]
87+
run: ./do gen:proc_cert_model_pdf[MC100-64]
8488
- name: Copy MC100-64 PDF
85-
run: cp gen/certificate_doc/pdf/MC100-64.pdf _site/pdfs/MC100-64.pdf
89+
run: cp gen/crd/pdf/MC100-64.pdf _site/pdfs/MC100-64.pdf
8690
- name: Create MC100-64 HTML Spec
87-
run: ./do gen:cert_model_html[MC100-64]
91+
run: ./do gen:proc_cert_model_html[MC100-64]
8892
- name: Copy MC100-64 HTML
89-
run: cp gen/certificate_doc/html/MC100-64.html _site/htmls/MC100-64.html
93+
un: cp gen/crd/html/MC100-64.html _site/htmls/MC100-64.html
9094
- name: Copy manual html
9195
run: cp -R gen/manual/isa/top/all/html _site/manual
9296
- name: Setup Pages

.github/workflows/regress.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
name: Build container
132132
run: ./bin/build_container
133133
- name: Generate extension PDF
134-
run: ./do gen:cert_model_pdf[MockCertificateModel]
134+
run: ./do gen:proc_cert_model_pdf[MockProcCertModel]
135135
regress-gen-profile:
136136
runs-on: ubuntu-latest
137137
needs: regress-smoke
@@ -160,4 +160,4 @@ jobs:
160160
name: Build container
161161
run: ./bin/build_container
162162
- name: Generate extension PDF
163-
run: ./do gen:profile[MockProfileRelease]
163+
run: ./do gen:profile_release_pdf[MockProfileRelease]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ resolved_arch
1515
node_modules
1616
_site
1717
images
18+
*.bak
1819
*.log
1920
*.bak

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ repos:
4646
args: ["--schemafile", "schemas/ext_schema.json"]
4747
- id: check-jsonschema
4848
alias: check-jsonschema-cert-model
49-
files: ^arch/certificate_model/.*\.(yaml|yml)$
50-
args: ["--schemafile", "schemas/cert_model_schema.json"]
49+
files: ^arch/proc_cert_model/.*\.(yaml|yml)$
50+
args: ["--schemafile", "schemas/proc_cert_model_schema.json"]
5151
- id: check-jsonschema
5252
alias: check-jsonschema-cert-class
53-
files: ^arch/certificate_class/.*\.(yaml|yml)$
54-
args: ["--schemafile", "schemas/cert_class_schema.json"]
53+
files: ^arch/proc_cert_class/.*\.(yaml|yml)$
54+
args: ["--schemafile", "schemas/proc_cert_class_schema.json"]
5555
# Commenting because throwing errors and not sure this is complete yet
5656
# - id: check-jsonschema
5757
# alias: check-jsonschema-manual-version

.vscode/launch.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "MC100-32",
77
"request": "launch",
88
"command": "bundle exec rake",
9-
"script": "gen:cert_model_pdf[MC100-32]",
9+
"script": "gen:proc_cert_model_pdf[MC100-32]",
1010
"args": [],
1111
"askParameters": false
1212
},
@@ -15,7 +15,16 @@
1515
"name": "MC200-32",
1616
"request": "launch",
1717
"command": "bundle exec rake",
18-
"script": "gen:cert_model_pdf[MC200-32]",
18+
"script": "gen:proc_cert_model_pdf[MC200-32]",
19+
"args": [],
20+
"askParameters": false
21+
},
22+
{
23+
"type": "rdbg",
24+
"name": "portfolios",
25+
"request": "launch",
26+
"command": "bundle exec rake",
27+
"script": "portfolios",
1928
"args": [],
2029
"askParameters": false
2130
},
@@ -24,7 +33,16 @@
2433
"name": "RVA20",
2534
"request": "launch",
2635
"command": "bundle exec rake",
27-
"script": "gen:profile[RVA20]",
36+
"script": "gen:profile_release_pdf[RVA20]",
37+
"args": [],
38+
"askParameters": false
39+
},
40+
{
41+
"type": "rdbg",
42+
"name": "Smoke test",
43+
"request": "launch",
44+
"command": "bundle exec rake",
45+
"script": "test:smoke",
2846
"args": [],
2947
"askParameters": false
3048
}

Rakefile

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ require "yard"
1010
require "minitest/test_task"
1111

1212
require_relative $root / "lib" / "architecture"
13+
require_relative $root / "lib" / "design"
14+
require_relative $root / "lib" / "portfolio_design"
1315

1416
directory "#{$root}/.stamps"
1517

18+
# Load and execute Rakefile for each backend.
1619
Dir.glob("#{$root}/backends/*/tasks.rake") do |rakefile|
20+
puts "UPDATE: Loading #{rakefile}"
1721
load rakefile
1822
end
1923

2024
directory "#{$root}/.stamps"
2125

26+
# @param config_name [String] Name of configuration
27+
# @return [ConfiguredArchitecture]
2228
def cfg_arch_for(config_name)
2329
Rake::Task["#{$root}/.stamps/resolve-#{config_name}.stamp"].invoke
2430

@@ -117,7 +123,7 @@ namespace :test do
117123
end
118124
task schema: "gen:resolved_arch" do
119125
puts "Checking arch files against schema.."
120-
Architecture.new("#{$root}/resolved_arch").validate(show_progress: true)
126+
Architecture.new("rv64", "#{$root}/resolved_arch").validate(show_progress: true)
121127
puts "All files validate against their schema"
122128
end
123129
task idl: ["gen:resolved_arch", "#{$root}/.stamps/resolve-rv32.stamp", "#{$root}/.stamps/resolve-rv64.stamp"] do
@@ -289,9 +295,13 @@ namespace :test do
289295
These are basic but fast-running tests to check the database and tools
290296
DESC
291297
task :smoke do
298+
puts "UPDATE: Running test:idl_compiler"
292299
Rake::Task["test:idl_compiler"].invoke
300+
puts "UPDATE: Running test:lib"
293301
Rake::Task["test:lib"].invoke
302+
puts "UPDATE: Running test:schema"
294303
Rake::Task["test:schema"].invoke
304+
puts "UPDATE: Running test:idl"
295305
Rake::Task["test:idl"].invoke
296306
end
297307

@@ -313,7 +323,7 @@ namespace :test do
313323

314324
Rake::Task["gen:html"].invoke("generic_rv64")
315325

316-
Rake::Task["#{$root}/gen/certificate_doc/pdf/MockCertificateModel.pdf"].invoke
326+
Rake::Task["#{$root}/gen/crd/pdf/MockProcCertModel.pdf"].invoke
317327
Rake::Task["#{$root}/gen/profile_doc/pdf/MockProfileRelease.pdf"].invoke
318328

319329
puts
@@ -337,31 +347,31 @@ desc <<~DESC
337347
Generate all portfolio-based PDF artifacts (certificates and profiles)
338348
DESC
339349
task :portfolios do
340-
portfolio_start_msg("MockCertificateModel")
341-
Rake::Task["#{$root}/gen/certificate_doc/pdf/MockCertificateModel.pdf"].invoke
342-
portfolio_start_msg("MockProfileRelease")
350+
portfolio_start_msg("MockProcCertModel CRD")
351+
Rake::Task["#{$root}/gen/crd/pdf/MockProcCertModel.pdf"].invoke
352+
portfolio_start_msg("MockProfileRelease CRD")
343353
Rake::Task["#{$root}/gen/profile_doc/pdf/MockProfileRelease.pdf"].invoke
344-
portfolio_start_msg("MC100-32")
345-
Rake::Task["#{$root}/gen/certificate_doc/pdf/MC100-32.pdf"].invoke
346-
portfolio_start_msg("MC100-64")
347-
Rake::Task["#{$root}/gen/certificate_doc/pdf/MC100-64.pdf"].invoke
348-
portfolio_start_msg("MC200-32")
349-
Rake::Task["#{$root}/gen/certificate_doc/pdf/MC200-32.pdf"].invoke
350-
portfolio_start_msg("MC200-64")
351-
Rake::Task["#{$root}/gen/certificate_doc/pdf/MC200-64.pdf"].invoke
352-
portfolio_start_msg("MC300-32")
353-
Rake::Task["#{$root}/gen/certificate_doc/pdf/MC300-32.pdf"].invoke
354-
portfolio_start_msg("MC300-64")
355-
Rake::Task["#{$root}/gen/certificate_doc/pdf/MC300-64.pdf"].invoke
356-
portfolio_start_msg("RVI20")
354+
portfolio_start_msg("MC100-32 CRD")
355+
Rake::Task["#{$root}/gen/crd/pdf/MC100-32.pdf"].invoke
356+
portfolio_start_msg("MC100-64 CRD")
357+
Rake::Task["#{$root}/gen/crd/pdf/MC100-64.pdf"].invoke
358+
portfolio_start_msg("MC200-32 CRD")
359+
Rake::Task["#{$root}/gen/crd/pdf/MC200-32.pdf"].invoke
360+
portfolio_start_msg("MC200-64 CRD")
361+
Rake::Task["#{$root}/gen/crd/pdf/MC200-64.pdf"].invoke
362+
portfolio_start_msg("MC300-32 CRD")
363+
Rake::Task["#{$root}/gen/crd/pdf/MC300-32.pdf"].invoke
364+
portfolio_start_msg("MC300-64 CRD")
365+
Rake::Task["#{$root}/gen/crd/pdf/MC300-64.pdf"].invoke
366+
portfolio_start_msg("RVI20 Profile Release")
357367
Rake::Task["#{$root}/gen/profile_doc/pdf/RVI20.pdf"].invoke
358-
portfolio_start_msg("RVA20")
368+
portfolio_start_msg("RVA20 Profile Release")
359369
Rake::Task["#{$root}/gen/profile_doc/pdf/RVA20.pdf"].invoke
360-
portfolio_start_msg("RVA22")
370+
portfolio_start_msg("RVA22 Profile Release")
361371
Rake::Task["#{$root}/gen/profile_doc/pdf/RVA22.pdf"].invoke
362-
portfolio_start_msg("RVA23")
372+
portfolio_start_msg("RVA23 Profile Release")
363373
Rake::Task["#{$root}/gen/profile_doc/pdf/RVA23.pdf"].invoke
364-
portfolio_start_msg("RVB23")
374+
portfolio_start_msg("RVB23 Profile Release")
365375
Rake::Task["#{$root}/gen/profile_doc/pdf/RVB23.pdf"].invoke
366376
end
367377

@@ -374,13 +384,13 @@ def portfolio_start_msg(name)
374384
end
375385

376386
# Shortcut targets for building profiles and certificates.
377-
task "MockCertificateModel": "#{$root}/gen/certificate_doc/pdf/MockCertificateModel.pdf"
378-
task "MC100-32": "#{$root}/gen/certificate_doc/pdf/MC100-32.pdf"
379-
task "MC100-64": "#{$root}/gen/certificate_doc/pdf/MC100-64.pdf"
380-
task "MC200-32": "#{$root}/gen/certificate_doc/pdf/MC200-32.pdf"
381-
task "MC200-64": "#{$root}/gen/certificate_doc/pdf/MC200-64.pdf"
382-
task "MC300-32": "#{$root}/gen/certificate_doc/pdf/MC300-32.pdf"
383-
task "MC300-64": "#{$root}/gen/certificate_doc/pdf/MC300-64.pdf"
387+
task "MockProcCertModel": "#{$root}/gen/crd/pdf/MockProcCertModel.pdf"
388+
task "MC100-32": "#{$root}/gen/crd/pdf/MC100-32.pdf"
389+
task "MC100-64": "#{$root}/gen/crd/pdf/MC100-64.pdf"
390+
task "MC200-32": "#{$root}/gen/crd/pdf/MC200-32.pdf"
391+
task "MC200-64": "#{$root}/gen/crd/pdf/MC200-64.pdf"
392+
task "MC300-32": "#{$root}/gen/crd/pdf/MC300-32.pdf"
393+
task "MC300-64": "#{$root}/gen/crd/pdf/MC300-64.pdf"
384394
task "MockProfileRelease": "#{$root}/gen/profile_doc/pdf/MockProfileRelease.pdf"
385395
task "RVI20": "#{$root}/gen/profile_doc/pdf/RVI20.pdf"
386396
task "RVA20": "#{$root}/gen/profile_doc/pdf/RVA20.pdf"

arch/certificate_class/MC.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

arch/certificate_class/MockCertificateClass.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

arch/certificate_model/MC100-64.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

arch/certificate_model/MC200-64.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)