{"id":21195062,"url":"https://github.com/plusk01/img2vhdl","last_synced_at":"2025-03-14T21:34:23.541Z","repository":{"id":27366396,"uuid":"30841867","full_name":"plusk01/img2vhdl","owner":"plusk01","description":"Takes an image and creates a VHDL file that will display that image using 8-bit VGA","archived":false,"fork":false,"pushed_at":"2015-02-16T17:56:50.000Z","size":900,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T14:14:09.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pclusk.com/img2vhdl","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plusk01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-15T20:59:23.000Z","updated_at":"2015-02-16T17:58:09.000Z","dependencies_parsed_at":"2022-09-02T07:50:15.828Z","dependency_job_id":null,"html_url":"https://github.com/plusk01/img2vhdl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusk01%2Fimg2vhdl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusk01%2Fimg2vhdl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusk01%2Fimg2vhdl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusk01%2Fimg2vhdl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plusk01","download_url":"https://codeload.github.com/plusk01/img2vhdl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243650355,"owners_count":20325277,"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-11-20T19:25:57.820Z","updated_at":"2025-03-14T21:34:23.507Z","avatar_url":"https://github.com/plusk01.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# img2vhdl\n\n[This JavaScript web app](http://pclusk.com/img2vhdl) utilized HTML5 File and Image APIs with the canvas element to process images and create VHDL-83 synthesizable code.\n\nThe app takes an image, and stretches it to fit inside a 640x480 window. Then, you can press the `8-bit Colorize!` button and the JavaScript algorithm will loop through each pixel and turn it into 8-bit RGB using the following color maps:\n\n    colorMapR and colorMapG\n    {  \n        0   : \"000\",\n        37  : \"001\",\n        74  : \"010\",\n        111 : \"011\",\n        148 : \"100\",\n        185 : \"101\",\n        222 : \"110\",\n        255 : \"111\"\n    }\n\n    colorMapB\n    {\n        0: \"00\",\n        85: \"01\",\n        170: \"10\",\n        255: \"11\"\n    }\n\nOnce 8-bit colorized, press `Get VHDL` to download the generated VHDL file that implements your image in code. This is done in a module that uses a process and a case statement to choose which values of RGB to display given a concatenated xy coordinate.\n\nAll you have to do to use this code is implement it in your top-level design as follows:\n\n    img: entity work.img2vhdl\n        port map(\n            pixel_x=\u003epixel_x, pixel_y=\u003epixel_y,\n            red=\u003emyRed,green=\u003emyGreen,blue=\u003emyBlue\n        );\n\nThis code was tested to run on a Digilent Nexys2 with Spartan-3E FPGA. To understand more fully how 640x480 8-bit VGA works on this dev board, consult the reference manual below.\n\n----------------------------------\n\n### Resources ###\n\n- [Demo Website](http://pclusk.com/img2vhdl)\n- [Digilent Nexys2 (Spartan3E) Reference Manual](http://www.digilentinc.com/data/products/nexys2/nexys2_rm.pdf)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusk01%2Fimg2vhdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplusk01%2Fimg2vhdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusk01%2Fimg2vhdl/lists"}