Title: Experience Solving Common Setup and Vivado Timing Issues · Issue #106 · fastmachinelearning/hls4ml-tutorial · GitHub
Open Graph Title: Experience Solving Common Setup and Vivado Timing Issues · Issue #106 · fastmachinelearning/hls4ml-tutorial
X Title: Experience Solving Common Setup and Vivado Timing Issues · Issue #106 · fastmachinelearning/hls4ml-tutorial
Description: I would like to share my issues and my solution for each problem part 0 environment preparation (create conda envionment) problem --> ModuleNotFoundError: No module named 'notebook.extensions' solution --> Edit environment.yml from “note...
Open Graph Description: I would like to share my issues and my solution for each problem part 0 environment preparation (create conda envionment) problem --> ModuleNotFoundError: No module named 'notebook.extensions' solu...
X Description: I would like to share my issues and my solution for each problem part 0 environment preparation (create conda envionment) problem --> ModuleNotFoundError: No module named 'notebook.extension...
Opengraph URL: https://github.com/fastmachinelearning/hls4ml-tutorial/issues/106
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Experience Solving Common Setup and Vivado Timing Issues","articleBody":"I would like to share my issues and my solution for each problem\n\n- part 0 environment preparation (create conda envionment)\n\t- problem --\u003e ModuleNotFoundError: No module named 'notebook.extensions'\n\t\t- solution --\u003e Edit environment.yml from “notebook” to “notebook\u003c7”\n\t- problem --\u003e In part7, for who using xilinx toolchain \u003e= 2020.2, will not have vivado_hls\n\t\t- solution --\u003e install HLS4ML from this pull request https://github.com/fastmachinelearning/hls4ml/pull/1134 instead (This will give you \"vitisAcceleratorBackend\")\n\t\t\n\t\t\n- part 3 compression\n\t- problem --\u003e ModuleNotFoundError: No module named 'tensorflow_model_optimization'\n\t\t- solution --\u003e ``` pip install -U tensorflow-model-optimization ```\n\t\t\n- part 5 bdt\n\t- problem --\u003e on pynq z2, the vivado say \"can't replace all shape\"\n\t \t- since the hls design set the target clock at 200 MHz, the vivado can't place all shape\n\t \t- solution --\u003e set the hls4ml target clock to 50 MHz\n\t \t- using this code \n\t \t\t- ``` pynq_model_cfg['ClockPeriod'] = 20 # set the clock period to 20ns ```\n - the code should be \n```python\npynq_model_cfg = conifer.backends.xilinxhls.auto_config()\npynq_model_cfg['OutputDir'] = 'model_5_pynq' # choose a new project directory\npynq_model_cfg['ProjectName'] = 'conifer_jettag'\npynq_model_cfg['XilinxPart'] = 'xc7z020clg400-1'\npynq_model_cfg['ClockPeriod'] = 20 # set the clock period to 20ns\npynq_model_cfg['AcceleratorConfig'] = {\n 'Board': 'pynq-z2', # choose a pynq-z2 board\n 'InterfaceType': 'float', # floating point for the data I/O (this is default)\n}\n\n# print the config\nprint('Modified Configuration\\n' + '-' * 50)\nprint(json.dumps(pynq_model_cfg, indent=2))\nprint('-' * 50)\n```\n\n\n- part 7a\n\t- problem --\u003e on vivado throw the critical warning \"Timing constraints are not met\"\n\t\t- solution ---\u003e it \"ultrascale plus block\" -\u003e \"CLock Configuration\" -\u003e \"Output Clocks\" -\u003e \"Low Power Domain Clock\" -\u003e PL0 set to 50\n\n\n","author":{"url":"https://github.com/Tanawin1701d","@type":"Person","name":"Tanawin1701d"},"datePublished":"2025-07-04T05:45:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/106/hls4ml-tutorial/issues/106"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b45db87f-0020-c9df-ce0c-0e851e75945c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC30:1E19D3:F93548:15997D5:6A4BE949 |
| html-safe-nonce | 17d3ccc1c661b4b7f930a8e03eb4d93ecacf7a8bb6a96a1954b959c70dc350d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzMwOjFFMTlEMzpGOTM1NDg6MTU5OTdENTo2QTRCRTk0OSIsInZpc2l0b3JfaWQiOiI0MDc1NjA0NDMzMDA1NDM5MzA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 39a9ec7138becfc421776bddbd4a418b15a6036cfe892476408a95939747393f |
| hovercard-subject-tag | issue:3201429260 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fastmachinelearning/hls4ml-tutorial/106/issue_layout |
| twitter:image | https://opengraph.githubassets.com/21f7c779dfdc9b9a93b6cf1249bb4100ecfac4b418f2ae270c4634b95bf4d8fe/fastmachinelearning/hls4ml-tutorial/issues/106 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21f7c779dfdc9b9a93b6cf1249bb4100ecfac4b418f2ae270c4634b95bf4d8fe/fastmachinelearning/hls4ml-tutorial/issues/106 |
| og:image:alt | I would like to share my issues and my solution for each problem part 0 environment preparation (create conda envionment) problem --> ModuleNotFoundError: No module named 'notebook.extensions' solu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Tanawin1701d |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/fastmachinelearning/hls4ml-tutorial git https://github.com/fastmachinelearning/hls4ml-tutorial.git |
| octolytics-dimension-user_id | 33101568 |
| octolytics-dimension-user_login | fastmachinelearning |
| octolytics-dimension-repository_id | 268801687 |
| octolytics-dimension-repository_nwo | fastmachinelearning/hls4ml-tutorial |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 268801687 |
| octolytics-dimension-repository_network_root_nwo | fastmachinelearning/hls4ml-tutorial |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f24da9b76b42d77b0bb458f810509565e9ba5f1a |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width