consolidate all write..file() into config.py and update zc706.py to follow artiq repo #260

Merged
sb10q merged 3 commits from morgan/artiq-zynq:zc_cfg_fix into master 2023-09-11 11:48:19 +08:00

Sumamary

  • write_csr_file(), write_mem_file() & write_rustc_cfg_file() from kasli_soc.py and zc706.py are moved to config.py

    • refactor write_rustc_cfg_file() to use cpu_interface.get_rust_cfg
    • zc706.py now auto generated has_CRS_core to its rustc_cfg file
  • following artiq repo, all self.rustc_cfg at zc706.py are replaced with self.config

  • zc706 rustc-cfg file check

    • run python src/gateware/zc706.py -c build/rustc-cfg -V <variant> for zc706_nist_clock master, satellite & standalone
    • vertified new rustc-cfg contains all the cfgs that the old cfg files have
  • kasli_soc rustc-cfg file check

    • run python src/gateware/zc706.py -c build/rustc-cfg <variant>.json for kasli_soc master, satellite & standalone
    • vertified the rustc-cfg has the same cfgs before patch
  • compilation check

    • run nix build <variant> -L for kasli_soc master, satellite, standalone and all built successfully
    • run nix build <variant> -L for zc706_nist_clock, zc706_nist_clock_master, zc706_nist_clock_satellite and all built successfully
## Sumamary - `write_csr_file()`, `write_mem_file()` & `write_rustc_cfg_file()` from `kasli_soc.py` and `zc706.py` are moved to `config.py` - refactor `write_rustc_cfg_file()` to use `cpu_interface.get_rust_cfg` - `zc706.py` now auto generated `has_CRS_core` to its rustc_cfg file - following artiq repo, all `self.rustc_cfg` at `zc706.py` are replaced with `self.config` - zc706 rustc-cfg file check - run `python src/gateware/zc706.py -c build/rustc-cfg -V <variant>` for zc706_nist_clock master, satellite & standalone - vertified new rustc-cfg contains all the cfgs that the old cfg files have - kasli_soc rustc-cfg file check - run `python src/gateware/zc706.py -c build/rustc-cfg <variant>.json` for kasli_soc master, satellite & standalone - vertified the rustc-cfg has the same cfgs before patch - compilation check - run `nix build <variant> -L` for kasli_soc master, satellite, standalone and all built successfully - run `nix build <variant> -L` for zc706_nist_clock, zc706_nist_clock_master, zc706_nist_clock_satellite and all built successfully
morgan added 1 commit 2023-09-07 16:46:14 +08:00
morgan force-pushed zc_cfg_fix from b41b931ce5 to aa2009d49e 2023-09-07 16:47:58 +08:00 Compare

Now I'm thinking that since write_... functions are shared between zc706 and kasli-soc, they could be just extracted into e.g. config.py - but it's not a big deal if it isn't.

Now I'm thinking that since ``write_...`` functions are shared between zc706 and kasli-soc, they could be just extracted into e.g. ``config.py`` - but it's not a big deal if it isn't.

they could be just extracted into e.g. config.py

Sounds good.

> they could be just extracted into e.g. config.py Sounds good.
morgan added 2 commits 2023-09-11 11:47:02 +08:00
morgan changed title from zc706.py: replace self.rustc_cfg and change write_rustc_cfg_file() to follow artiq repo to consolidate all `write..file()` into `config.py` and update `zc706.py` to follow artiq repo 2023-09-11 11:47:33 +08:00
sb10q merged commit b3856e879b into master 2023-09-11 11:48:19 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#260
There is no content yet.