Conversation
Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
The tests reference hdlsim_dvflow but the fixture was named pyhdl_dvflow, causing fixture not found errors in CI.
- Implement JSON-based API definition format with comprehensive schema - Add format detection supporting JSON (now), YAML/TOML (future) - Create Python class generator from JSON specs - Add command-line tool for Python generation from JSON - Implement --spec/-s parameter (replaces --json/-j, backward compatible) - Add --spec-fmt parameter for explicit format specification - Support both inline spec strings and file paths in DFM tasks - Validate .json extension for spec file paths - Add JSON Schema (Draft 7) with editor integration support - Publish schema to docs root for easy reference New files: - src/hdl_if/impl/call/api_def_from_json.py - JSON parser - src/hdl_if/impl/call/gen_py_class.py - Python class generator - scripts/gen_py_from_json.py - Command-line tool - doc/pyhdl-if.schema.json - JSON Schema specification - doc/JSON_API_GENERATION.md - User documentation - doc/SCHEMA_README.md - Schema usage guide Testing: - 50 unit tests (13 spec format, 15 schema, 10 JSON, 12 filtering) - 3 integration tests with Verilator - All tests pass, no regressions - Backward compatibility maintained (--json/-j still works) Documentation: - IMPLEMENTATION_SUMMARY.md - Technical overview - JSON_SCHEMA_SUMMARY.md - Schema details - SPEC_FORMAT_SUMMARY.md - Format support details
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove dependency on pytypeworks package. Add support for generating SV classes from JSON