{"id":22753596,"url":"https://github.com/slaclab/epix-hr-m-320k","last_synced_at":"2026-02-14T13:02:14.760Z","repository":{"id":234369121,"uuid":"508363824","full_name":"slaclab/epix-hr-m-320k","owner":"slaclab","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-10T23:51:37.000Z","size":91005,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-12-11T00:28:52.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slaclab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-28T15:53:02.000Z","updated_at":"2024-07-15T16:46:29.000Z","dependencies_parsed_at":"2024-05-01T02:47:09.969Z","dependency_job_id":"3bb2a140-7e9f-4af3-b33a-72a6e475fc1c","html_url":"https://github.com/slaclab/epix-hr-m-320k","commit_stats":null,"previous_names":["slaclab/epix-hr-m-320k"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaclab%2Fepix-hr-m-320k","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaclab%2Fepix-hr-m-320k/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaclab%2Fepix-hr-m-320k/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaclab%2Fepix-hr-m-320k/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slaclab","download_url":"https://codeload.github.com/slaclab/epix-hr-m-320k/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229180694,"owners_count":18032469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-11T06:11:51.892Z","updated_at":"2024-12-11T06:12:18.340Z","avatar_url":"https://github.com/slaclab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# epix-hr-m-320k\n\n## Before you clone the GIT repository\n\n1) Create a github account:\n\u003e https://github.com/\n\n2) On the Linux machine that you will clone the github from, generate a SSH key (if not already done)\n\u003e https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/\n\n3) Add a new SSH key to your GitHub account\n\u003e https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/\n\n4) Setup for large filesystems on github (one-time operation)\n\u003e $ git lfs install\n\n## Clone the GIT repository\n``` $ git clone --recursive git@github.com:slaclab/epix-hr-m-320k.git```\n\n\n## How to build the firmware\n\n1) Setup Xilinx licensing\n```\n$ source epix-hr-m-320k/firmware/setup_env_slac.sh\n```\n\n2) If not done yet, make a symbolic link to the firmware/\n```\n$ ln -s /u1/$USER/build epix-hr-m-320k/firmware/build\n```\n\n3) Go to the target directory and make the firmware:\n```\n$ cd epix-hr-m-320k/firmware/targets/ePixHRM320k/\n$ make\n```\n\n4) Optional: Review the results in GUI mode\n```\n$ make gui\n```\n\n## How to run simulation\n\n1) Setup Xilinx licensing\n```\n$ source epix-hr-m-320k/firmware/setup_env_slac.sh\n```\n\n2) If not done yet, make a symbolic link to the firmware/\n```\n$ ln -s /u1/$USER/build epix-hr-m-320k/firmware/build\n```\n\n3) Go to the target directory and make the firmware:\n```\n$ cd epix-hr-m-320k/firmware/targets/ePixHRM320k/\n$ make vcs\n```\n\n4) Execute the instructions provided by the previous command\ngive that it finished successfully.\n\n5) In a new terminal run Rogue source script\n```\n$ source epix-hr-m-320k/software/setup_env_slac.sh\n```\n\n6) Run the python software\n```\n$ cd epix-hr-m-320k/software/scripts\n$ python devGui.py --dev sim\n```\n\n## LEAP Transceiver Mapping\n\n\n```\nLane[7:0] : serving core\nLane[11:8] : serving app\n\n\nLane[0].VC[0] = Data[0]\nLane[1].VC[0] = Data[1]\nLane[2].VC[0] = Data[2]\nLane[3].VC[0] = Data[3]\nLane[4].VC[0] = Spare\nLane[5].VC[0] = SRPv3\nLane[5].VC[1] = software trigger (ssiCmd)\nLane[5].VC[2] = XVC\n-Lane[6].VC[0] = slow monitoring[1:0]\n-    [1] = Power and Communication Board\n-    [0] = Digital Board\nLane[7].VC[3:0] = o-scope[3:0]\nLane[10:8] = Reserved for edgeML\nLane[11] = LCLS-II Timing\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaclab%2Fepix-hr-m-320k","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslaclab%2Fepix-hr-m-320k","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaclab%2Fepix-hr-m-320k/lists"}