{"id":311408,"date":"2020-10-13T15:01:30","date_gmt":"2020-10-13T15:01:30","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=311408"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=311408","title":{"rendered":"\u041f\u0440\u043e\u0432\u043e\u0434\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0433\u043e\u043b\u043e\u0432\u044b USB-\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/522678\/\">\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043c\u044b \u043f\u0440\u043e\u0448\u043b\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0443\u0442\u044c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0448\u0438\u043d\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 USB. \u041c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u043d\u0430\u0431\u0438\u0432 \u0440\u0443\u043a\u0443 \u043d\u0430 \u0441\u0430\u043c\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u0434\u0430\u043b\u044c\u0448\u0435 \u2013 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0433\u043e\u043b\u043e\u0432\u0443 USB-\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430. \u0417\u0430\u0442\u0435\u043c \u2013 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0438, \u0447\u0442\u043e \u043a\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u043c, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041d\u043e \u0432\u043e\u0442 \u0431\u0435\u0434\u0430, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b ULPI \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 SystemC. \u041c\u044b \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u044d\u0442\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c. \u041d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e, \u043c\u044b \u0432\u043b\u0430\u0434\u0435\u0435\u043c \u0432\u0441\u0435\u043c\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u043d\u0430\u0432\u044b\u043a\u0430\u043c\u0438 \u0438 \u0433\u043e\u0442\u043e\u0432\u044b \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u044f\u0434\u0440\u0430. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c!<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wv\/qr\/c7\/wvqrc75qe56qomzekbh-auqryts.jpeg\"><\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0446\u0438\u043a\u043b\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<ol>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/452656\/\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0439 \u00ab\u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438\u00bb \u0434\u043b\u044f \u041f\u041b\u0418\u0421, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0432 Redd, \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0442\u0435\u0441\u0442\u0430 \u043f\u0430\u043c\u044f\u0442\u0438<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/453682\/\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0439 \u00ab\u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438\u00bb \u0434\u043b\u044f \u041f\u041b\u0418\u0421, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0432 Redd. \u0427\u0430\u0441\u0442\u044c 2. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/454938\/\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u044f\u0434\u0440\u0430 \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0430 \u0431\u0430\u0437\u0435 \u041f\u041b\u0418\u0421<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/456008\/\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 Redd \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u041f\u041b\u0418\u0421<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/462253\/\">\u041f\u0435\u0440\u0432\u044b\u0435 \u043e\u043f\u044b\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u0432\u044f\u0437\u0438 \u0426\u041f \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0432 \u041f\u041b\u0418\u0421 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0430 Redd<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/464795\/\">\u0412\u0435\u0441\u0435\u043b\u0430\u044f \u041a\u0432\u0430\u0440\u0442\u0443\u0441\u0435\u043b\u044c, \u0438\u043b\u0438 \u043a\u0430\u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0434\u043e\u043a\u0430\u0442\u0438\u043b\u0441\u044f \u0434\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0438\u0437\u043d\u0438<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/467353\/\">\u041c\u0435\u0442\u043e\u0434\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f Redd. \u0427\u0430\u0441\u0442\u044c 1: \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043a\u044d\u0448\u0430<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/468027\/\">\u041c\u0435\u0442\u043e\u0434\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f Redd. \u0427\u0430\u0441\u0442\u044c 2: \u043d\u0435\u043a\u044d\u0448\u0438\u0440\u0443\u0435\u043c\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0448\u0438\u043d<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/469985\/\">\u042d\u043a\u0441\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u0430\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0434\u0430: \u0437\u0430\u043c\u0435\u043d\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/477662\/\">\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0448\u0438\u043d\u0430\u043c \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0430 Redd, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 FTDI<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/483724\/\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u0448\u0438\u043d\u0430\u043c\u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0430 Redd<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/484706\/\">\u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u0448\u0438\u043d\u0430\u043c\u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0430 Redd<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/493630\/\">\u041f\u0440\u043e\u0431\u0440\u043e\u0441 USB-\u043f\u043e\u0440\u0442\u043e\u0432 \u0438\u0437 Windows 10 \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/496508\/\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Nios II \u0431\u0435\u0437 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u044f\u0434\u0440\u0430 Nios II<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/500016\/\">\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u041f\u041b\u0418\u0421 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 Redd. \u041e\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c DMA \u0434\u043b\u044f \u0448\u0438\u043d\u044b Avalon-ST \u0438 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0446\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u0448\u0438\u043d\u0430\u043c\u0438 Avalon-MM<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/506464\/\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0433\u043e \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0430 Redd<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/508138\/\"> \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 Redd \u2013 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/510234\/\"> \u0414\u0435\u043b\u0430\u0435\u043c \u0433\u043e\u043b\u043e\u0432\u0443 \u0448\u0438\u043d\u043d\u043e\u0433\u043e USB-\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0430 Redd<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/512602\/\"> \u041c\u043e\u0434\u0435\u043b\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 Quartus-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 Verilog \u0432 \u0441\u0440\u0435\u0434\u0435 ModelSim<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/520702\/\"> \u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0432 \u0441\u0440\u0435\u0434\u0435 ModelSim \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 SystemC<\/a><\/li>\n<\/ol>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0448\u0438\u043d\u0443 AVALON_ST<\/h2>\n<p>  \u041d\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0441\u0442\u043e\u0438\u0442 \u0441 \u0447\u0435\u0433\u043e-\u0442\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e. \u0421\u043a\u0430\u0436\u0435\u043c, \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0448\u0438\u043d\u0443 AVALON_ST. \u041d\u043e \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c? \u0420\u0430\u0437\u0433\u043b\u044f\u0434\u044b\u0432\u0430\u044f \u0444\u0430\u0439\u043b\u044b <b>ulpi_driver.h<\/b> \u0438 <b>ulpi_driver.cpp<\/b>, \u044f \u043f\u0440\u0438\u0448\u0451\u043b \u043a \u0433\u0440\u0443\u0441\u0442\u043d\u043e\u043c\u0443 \u0432\u044b\u0432\u043e\u0434\u0443: \u043d\u0430\u0434\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <br \/>  <b>void ulpi_driver::write(sc_uint &lt;8&gt; data, bool last)<\/b><\/p>\n<p>  \u0412\u0441\u0451 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043a\u0440\u043e\u043c\u0435 \u043e\u0434\u043d\u043e\u0433\u043e: \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438, \u0447\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f Verilog-\u043a\u043e\u0434\u043e\u043c. \u041a\u0442\u043e \u0436\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e? \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432\u0437\u0430\u0438\u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u0441\u0438\u0448\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u0437 \u043a\u043e\u0434\u0430 Verilog \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u041d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u044f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u0434\u0435\u043d\u044c, \u043d\u043e \u0442\u0430\u043a \u0438 \u043d\u0435 \u043f\u043e\u043d\u044f\u043b, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0412\u0441\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0437 \u0441\u0442\u0430\u0442\u0435\u0439 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f ModelSim \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445\u2026 \u0410 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043d\u0435 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435. \u041c\u044b \u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0438\u043f\u0430 <b>ulpi driver<\/b>. \u0418 \u043a\u0430\u043a \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043e\u0431\u044a\u0435\u043a\u0442\u0430?<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u044b \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0440\u0430\u0437\u044a\u044f\u0441\u043d\u044f\u0442, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041f\u043e\u043a\u0430 \u0436\u0435, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0443 <b>ulpi_driver<\/b> \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043f\u043e\u0440\u0442 <b>add_test_data<\/b> \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043e\u0442\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044d\u0442\u043e\u0442 \u043f\u043e\u0440\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c. Verilog \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0434\u0451\u0440\u0433\u0430\u0442\u044c \u0437\u0430 \u044d\u0442\u0443 \u0432\u0435\u0440\u0451\u0432\u043a\u0443, \u0430 SystemC \u0447\u0430\u0441\u0442\u044c, \u0443\u0432\u0438\u0434\u0435\u0432 \u043f\u0435\u0440\u0435\u043f\u0430\u0434, \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u043a\u0443\u0447\u043a\u0443 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 (\u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0448\u0443\u0442\u043a\u0430: \u00ab\u041f\u043e\u043b\u0443\u0430\u0432\u0442\u043e\u043c\u0430\u0442: \u043d\u0430\u0436\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0443 \u2014 \u043f\u043e\u043b\u043d\u0430\u044f \u043b\u043e\u043f\u0430\u0442\u0430 \u043f\u0435\u0441\u043a\u0430\u00bb). <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043a\u043b\u0430\u0441\u0441\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a (\u043d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f):  <\/p>\n<pre><code class=\"plaintext\">SC_MODULE (ulpi_driver) { public:     \/\/-------------------------------------------------------------     \/\/ Interface I\/O     \/\/-------------------------------------------------------------         \/\/ Clock and Reset     sc_out&lt;bool&gt;             clk;     sc_in&lt;bool&gt;             rst_i;      \/\/ I\/O     sc_inout &lt;sc_lv&lt;8&gt; &gt;    ulpi_data;     sc_out &lt;bool&gt;           ulpi_dir_o;     sc_out &lt;bool&gt;           ulpi_nxt_o;     sc_in  &lt;bool&gt;           ulpi_stp_i;      sc_in &lt;bool&gt;            add_test_data; <\/code><\/pre>\n<p>  \u041d\u043e\u0432\u0430\u044f \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u0430 \u0434\u043e \u0431\u0435\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u044f:  <\/p>\n<pre><code class=\"plaintext\">    void genTestDataThread(void)     {        while (true)        {           write (0x11,false);           write (0x22,false);           write (0x33,false);           write (0x44,false);           write (0x55,false);           write (0x66,true);           wait ();        }     } <\/code><\/pre>\n<p>  \u041d\u0430\u0447\u0430\u043b\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u0436\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a (\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c \u0434\u043b\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f <b>wait()<\/b> \u0443 \u043d\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043f\u0430\u0434\u0430 \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0432\u0445\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0440\u0442\u0443):  <\/p>\n<pre><code class=\"plaintext\">    SC_HAS_PROCESS(ulpi_driver);     ulpi_driver(sc_module_name name): sc_module(name),                                       m_tx_fifo(1024),                                        m_rx_fifo(1024),                                       oscillator (&quot;clk66&quot;,sc_time(15,SC_NS)),                                       rst_i (&quot;rst&quot;),                                            ulpi_data (&quot;data&quot;),                                       ulpi_dir_o (&quot;dir&quot;),                                       ulpi_nxt_o (&quot;nxt&quot;),                                       ulpi_stp_i (&quot;stp&quot;),                                       add_test_data (&quot;add_test_data&quot;)     {         SC_THREAD(drive);         SC_THREAD(clkThread);         SC_CTHREAD(genTestDataThread,add_test_data.pos()); <\/code><\/pre>\n<p>  \u041f\u043e\u0435\u0445\u0430\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u043a\u0430\u043a \u043b\u043e\u0432\u044f\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u0440\u043e\u0431\u0435\u0433\u0430\u044e\u0449\u0438\u0435 \u043f\u043e \u0448\u0438\u043d\u0435.<\/p>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0434\u0451\u0440\u0433\u0430\u043d\u044c\u044f \u0432\u0435\u0440\u0451\u0432\u043a\u0438 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0431\u043b\u043e\u043a <b>initial <\/b>\u0444\u0430\u0439\u043b\u0430 <b>sim1.sv<\/b>:  <\/p>\n<pre><code class=\"plaintext\">     \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u0440\u0438\u0451\u043c \u0434\u0430\u043d\u043d\u044b\u0445,       \/\/ \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u044b\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u0445      #50;      add_test_data = 1;      #20;      add_test_data = 0;       #150;      add_test_data = 1;      #20;      add_test_data = 0; <\/code><\/pre>\n<p>  \u0418 \u0432\u043e\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043d\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435 (\u0436\u0451\u043b\u0442\u044b\u043c \u044f \u043f\u043e\u0434\u043a\u0440\u0430\u0441\u0438\u043b \u043b\u0438\u043d\u0438\u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0448\u0438\u043d\u0435 AVALON_ST). \u041e\u0431\u0449\u0438\u0439 \u043f\u043b\u0430\u043d:<\/p>\n<p>  <a href=\"https:\/\/habrastorage.org\/webt\/f0\/0d\/nc\/f00dncmj9p2bswzlxc-8sb8cov4.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/f0\/0d\/nc\/f00dncmj9p2bswzlxc-8sb8cov4.png\"> <br \/>  <\/a><br \/>  \u0421\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e:<\/p>\n<p>  <a href=\"https:\/\/habrastorage.org\/webt\/ki\/e0\/dk\/kie0dkqkgxgdghwjrmku7rizo44.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ki\/e0\/dk\/kie0dkqkgxgdghwjrmku7rizo44.png\"><\/a> <\/p>\n<p>  \u0412\u0440\u043e\u0434\u0435, \u0432\u0441\u0451 \u0432\u0435\u0440\u043d\u043e. \u0412\u0438\u0436\u0443 \u0434\u0430\u043d\u043d\u044b\u0435 0x11, 0x22, 0x33\u2026 \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0438\u0434\u0451\u0442 0x112. \u041c\u0430\u0441\u043a\u0430 0x100 \u2014 \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041d\u043e \u043e\u0442\u043a\u0443\u0434\u0430 \u043e\u043d\u0430 \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c? \u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 ULPI \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 0x12, \u0430 \u0435\u0441\u043b\u0438 \u0442\u043e\u0447\u043d\u0435\u0435, \u0442\u043e 0x02 \u0441 \u0444\u043b\u0430\u0433\u043e\u043c <b>rx_active<\/b> (\u0432\u0440\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u044e, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u0444\u043b\u0430\u0433, \u043d\u043e \u0432\u0438\u0436\u0443 \u0435\u0433\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u043c\u043e\u0434\u0435\u043b\u0438, \u0432 \u044d\u0442\u043e\u043c \u0438 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439: \u0432\u0441\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0438\u0433\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e):  <\/p>\n<pre><code class=\"plaintext\">            do             {                 \/\/ RX_CMD                 if (!(rand() % 4))                 {                     last = false;                      \/\/ RX_CMD (RX_ACTIVE = 1)                     drive_rxcmd(0x2, true, false);                 }                 \/\/ RX_DATA                 else <\/code><\/pre>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c, \u0441 \u0432\u0438\u0434\u0443 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u0438 \u0431\u043e\u0435\u0432\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0447\u0442\u043e-\u0442\u043e \u0438 \u0432\u044b\u043b\u0435\u0437\u0435\u0442, \u043d\u043e \u043f\u043e\u043a\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b ULPI.<\/p>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b ULPI<\/h2>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b ULPI, \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0448\u0438\u043d\u044b AVALON_MM. \u0412 <a href=\"https:\/\/habr.com\/ru\/post\/512602\/\">\u043f\u043e\u0437\u0430\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043c\u044b \u0443\u0436\u0435 \u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u0432 \u043d\u0435\u043a\u0443\u044e \u0448\u0438\u043d\u0443. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0437\u0430\u0434\u0430\u0447\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0438\u0448\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 AVALON_MM (\u0432 \u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u0432 \u043a\u0430\u043a\u043e\u043c \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043c\u043d\u0435):  <\/p>\n<pre><code class=\"plaintext\">task AvalonMmWrite (input reg[1:0] A, input reg[31:0] D);     begin         address = A;         writedata = D;         write = 1;         @(posedge ulpi_clk);         #1         write = 0;    end endtask <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0442\u0435\u043d\u0438\u0435. \u0422\u043e\u0436\u0435 \u043d\u0435 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u043c, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u043c \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u0435:  <\/p>\n<pre><code class=\"plaintext\">task AvalonMmRead (input logic[1:0] A, output logic [31:0] D);         address = A;         read = 1;         @(posedge ulpi_clk);         D = readdata;         #1         read = 0; endtask <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043e\u043d\u0430 \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0431\u043b\u043e\u043a <b>initial<\/b> \u0442\u0430\u043a\u043e\u0439 \u0442\u0435\u043a\u0441\u0442:  <\/p>\n<pre><code class=\"plaintext\">     #210;      \/\/ \u041d\u0443 \u0447\u0442\u043e, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440...      \/\/ \u041f\u0443\u0441\u0442\u044c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 Reg5      AvalonMmWrite (0,5);      \/\/ \u0414\u0430\u043d\u043d\u044b\u0435 0x12. \u0410 \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u0442?      AvalonMmWrite (1,'h12);       \/\/ \u0416\u0434\u0451\u043c \u0441\u043d\u044f\u0442\u0438\u044f BSY      AvalonMmRead(3,temp);      while (temp &amp; 'h1)      begin           AvalonMmRead(3,temp);      end;      #30; <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043e\u0432\u043e\u0434 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435. \u0427\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u043a\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440, \u0435\u0433\u043e \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0432\u0440\u0435\u043c\u044f\u043d\u043a\u0443. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 ULPI, \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 <b>m_reg<\/b> \u0438 \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c <b>m_reg[5]<\/b> \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/0w\/8i\/iw\/0w8iiwllslixvbpjghocnld2xfa.png\"> <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kb\/av\/oi\/kbavoi1hkkdp8clea_lj0iqugo4.png\"><\/p>\n<p>  \u0412\u043e\u0442 \u0432\u0440\u0435\u043c\u044f\u043d\u043a\u0430, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443. \u042f \u043f\u043e\u0434\u043a\u0440\u0430\u0441\u0438\u043b \u043b\u0438\u043d\u0438\u0438 \u0448\u0438\u043d\u044b AVALON_MM, \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0437\u0430 \u0447\u0442\u0435\u043d\u0438\u0435, \u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u043c. \u041b\u0438\u043d\u0438\u0438 AVALON_MM, \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0437\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u2014 \u0433\u043e\u043b\u0443\u0431\u044b\u043c. \u041d\u0443, \u0430 \u043b\u0438\u043d\u0438\u0438 ULPI \u2014 \u0436\u0451\u043b\u0442\u044b\u043c.<\/p>\n<p>  <a href=\"https:\/\/habrastorage.org\/webt\/zb\/2l\/0t\/zb2l0tag4lyszrcbnverjck_xu4.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zb\/2l\/0t\/zb2l0tag4lyszrcbnverjck_xu4.png\"><\/a> <\/p>\n<p>  \u041c\u044b \u0432\u0438\u0434\u0438\u043c \u0446\u0438\u043a\u043b \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u043e\u043c\u0435\u0440\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 (addr=0, data=5). \u041c\u044b \u0432\u0438\u0434\u0438\u043c \u0446\u0438\u043a\u043b \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 (addr=1 data=0x12). \u041c\u044b \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0444\u0430\u043a\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043f\u043e\u0440\u0442 \u0441\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043c 1 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 ULPI. \u041c\u044b \u0432\u0438\u0434\u0438\u043c, \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438\u0434\u0451\u0442, \u0434\u0430\u0436\u0435 \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043f\u0430\u043b\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 0x12. \u042d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437\u0443\u043f\u0440\u0435\u0447\u043d\u043e. \u0427\u0442\u043e \u043c\u044b \u043d\u0435 \u0432\u0438\u0434\u0438\u043c? \u0410 \u043d\u0435 \u0432\u0438\u0434\u0438\u043c \u043c\u044b \u0431\u0438\u0442 BSY \u043f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 0x03 \u043d\u0430 \u0448\u0438\u043d\u0435 AVALON_MM. \u041f\u043e\u0447\u0435\u043c\u0443? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443 \u043f\u0430\u0440\u0443 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f DUT. \u0421\u0438\u0433\u043d\u0430\u043b \u00abS\u00bb \u0434\u043b\u044f RS \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u0441\u0438\u0433\u043d\u0430\u043b BSY. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/te\/de\/e1\/tedee1r-qn5cd4yiylu5-rsn620.png\"> <\/p>\n<p>  \u042f \u0438\u0445 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434\u043a\u0440\u0430\u0448\u0443 \u043a\u0440\u0430\u0441\u043d\u044b\u043c. \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<p>  <a href=\"https:\/\/habrastorage.org\/webt\/pk\/cl\/na\/pkclnaeds4quebiz542j88sbq80.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pk\/cl\/na\/pkclnaeds4quebiz542j88sbq80.png\"><\/a><\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0441\u0438\u0433\u043d\u0430\u043b<b> write_bsy<\/b> \u0432\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043d\u0430 \u043e\u0434\u0438\u043d \u0442\u0430\u043a\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u0432 \u043a\u043e\u0434\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u043c\u043d\u043e\u044e \u0441\u0442\u0440\u043e\u043a\u0443:  <\/p>\n<pre><code class=\"plaintext\">\/\/ \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 3 : readdata &lt;= {30'b0, read_busy, write_busy}; <\/code><\/pre>\n<p>  \u043d\u0430  <\/p>\n<pre><code class=\"plaintext\">\/\/ \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 3 : readdata &lt;= {30'b0, (reg_request | read_busy), (have_reg | write_busy)}; <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u2026<\/p>\n<p>  <a href=\"https:\/\/habrastorage.org\/webt\/g8\/2q\/46\/g82q46eqw6b6bj3mya9vo_rrvdo.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/g8\/2q\/46\/g82q46eqw6b6bj3mya9vo_rrvdo.png\"><\/a> <\/p>\n<p>  \u0421 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 BSY \u0441\u0442\u0430\u043b\u043e \u043b\u0443\u0447\u0448\u0435. \u0421 \u0447\u0442\u0435\u043d\u0438\u0435\u043c \u2014 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c. \u0415\u0441\u043b\u0438 \u0442\u043e\u0447\u043d\u0435\u0435, \u0442\u043e \u0447\u0442\u0435\u043d\u0438\u0435 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043e\u0442\u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0437\u0430\u0434\u0430\u0432 \u043b\u0430\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0448\u0438\u043d\u044b, \u0440\u0430\u0432\u043d\u043e\u0439 \u0435\u0434\u0438\u043d\u0438\u0446\u0435. \u041d\u043e \u044f \u043b\u044e\u0431\u043b\u044e \u043b\u0430\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c, \u0440\u0430\u0432\u043d\u0443\u044e \u043d\u0443\u043b\u044e. \u0418 \u0441\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439, \u0432\u0435\u0447\u043d\u043e \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u044e \u043e\u0431 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u043e \u043d\u0435 \u0431\u0435\u0434\u0430: \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u0439 \u0432\u0440\u0435\u043c\u044f\u043d\u043a\u0438, \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0447\u0442\u0435\u043d\u0438\u044f AVALON_MM \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"plaintext\">\/\/ \u041e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 AVALON_MM \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 always_ff @(posedge ulpi_clk) begin    if (read == 1)     begin       case (address)          \/\/ \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0430\u0434\u0440\u0435\u0441\u0430 (\u0447\u0438\u0441\u0442\u043e \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f)          0 : readdata &lt;= {26'b0, addr_to_ulpi};           \/\/ \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u0430\u043d\u043d\u044b\u0445          1 : readdata &lt;= {23'b0, data_from_ulpi};           \/\/ 2 - \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0430 \u043e\u043d - \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c           \/\/ \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0441\u0442\u0430\u0442\u0443\u0441\u0430          3 : readdata &lt;= {30'b0, (reg_request | read_busy), (have_reg | write_busy)};         default: readdata &lt;= 0;       endcase    end end    <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u043c\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043d\u0430:  <\/p>\n<pre><code class=\"plaintext\">\/\/ \u041e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 AVALON_MM \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 always_comb  begin ... <\/code><\/pre>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c, \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 (<b>always_ff \u043d\u0430 always_comb<\/b>). \u041f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c, \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435: <\/p>\n<p>  <a href=\"https:\/\/habrastorage.org\/webt\/s5\/co\/58\/s5co589ivmb7rhsrksbvo6ncaqc.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/s5\/co\/58\/s5co589ivmb7rhsrksbvo6ncaqc.png\"><\/a> <\/p>\n<p>  \u041d\u0443 \u0432\u043e\u0442. \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0437 \u043f\u043e\u0440\u0442\u0430 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u0430, \u043f\u043e\u043a\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442 \u0437\u0430\u043d\u044f\u0442. \u041d\u0443, \u0430 \u043c\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0438, \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u044f\u0432\u043b\u044f\u0442\u044c \u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0431\u0435\u0436\u0438\u043c\u0441\u044f \u043f\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 ULPI<\/h2>\n<p>  \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 ULPI \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0430\u0440\u044b \u0438\u0437 \u043d\u0438\u0445, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0431\u0443\u0434\u0443\u0442 \u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:  <\/p>\n<pre><code class=\"plaintext\">     \/\/ \u0421\u0447\u0438\u0442\u0430\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440 4      AvalonMmWrite (0,4); \/\/ \u0410\u0434\u0440\u0435\u0441      AvalonMmWrite (2,1); \/\/ \u041f\u0440\u043e\u0432\u043e\u0446\u0438\u0440\u0443\u0435\u043c \u0447\u0442\u0435\u043d\u0438\u0435      AvalonMmRead(3,temp);      while (temp &amp; 'h2)      begin           AvalonMmRead(3,temp);      end;      \/\/ \u0427\u0438\u0442\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435      AvalonMmRead(1,temp);      #30;       \/\/ \u0421\u0447\u0438\u0442\u0430\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440 5      AvalonMmWrite (0,5); \/\/ \u0410\u0434\u0440\u0435\u0441      AvalonMmWrite (2,1); \/\/ \u041f\u0440\u043e\u0432\u043e\u0446\u0438\u0440\u0443\u0435\u043c \u0447\u0442\u0435\u043d\u0438\u0435      AvalonMmRead(3,temp);      while (temp &amp; 'h2)      begin           AvalonMmRead(3,temp);      end;      \/\/ \u0427\u0438\u0442\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435      AvalonMmRead(1,temp);      #30; <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0432\u0440\u0435\u043c\u044f\u043d\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 4:<\/p>\n<p>  <a href=\"https:\/\/habrastorage.org\/webt\/xl\/zt\/rj\/xlztrjj0askkzm2gjy7ehqidwhw.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xl\/zt\/rj\/xlztrjj0askkzm2gjy7ehqidwhw.png\"><\/a> <\/p>\n<p>  \u0427\u0442\u043e \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0435\u0436\u0438\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 0x41, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ch\/w8\/zz\/chw8zzc9b33dultrtzrqagediqc.png\"> <\/p>\n<p>  \u041d\u0443, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0x12 \u043c\u044b \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 5 \u0437\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0440\u0443\u0447\u043d\u043e \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u0438. \u0423\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u043e:<\/p>\n<p>  <a href=\"https:\/\/habrastorage.org\/webt\/mr\/p8\/lt\/mrp8lt3wjvrhm7vmgu1pqvxvu2e.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/mr\/p8\/lt\/mrp8lt3wjvrhm7vmgu1pqvxvu2e.png\"><\/a> <\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043d\u0430\u0432\u044b\u043a\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043a\u043e\u0434\u0430 Verilog \u043f\u0443\u0442\u0451\u043c \u0435\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u043e\u0441\u044b\u043b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u0432\u0438\u043b \u0430\u0432\u0442\u043e\u0440: \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0432 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043c\u043e\u0434\u0443\u043b\u0435\u0439. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0438\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043d\u0430\u0440\u0443\u0436\u0438, \u043d\u043e \u0438 \u00ab\u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c\u00bb. \u042d\u0442\u043e\u0433\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f. \u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0436\u0435 \u0434\u0430\u0451\u0442 \u043d\u0430\u043c \u0442\u0430\u043a\u0443\u044e \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c. \u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u0436\u0435 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439, \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0410 \u0437\u043d\u0430\u0447\u0438\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0439 \u00ab\u0433\u043e\u043b\u043e\u0432\u044b\u00bb \u0448\u0438\u043d\u043d\u043e\u0433\u043e USB-\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u0431\u043e\u0435\u0432\u044b\u0445 \u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0439. \u041d\u043e \u044d\u0442\u0438\u043c \u043c\u044b \u0437\u0430\u0439\u043c\u0451\u043c\u0441\u044f \u0443\u0436\u0435 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/522678\/\"> https:\/\/habr.com\/ru\/post\/522678\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/522678\/\">\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043c\u044b \u043f\u0440\u043e\u0448\u043b\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0443\u0442\u044c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0448\u0438\u043d\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 USB. \u041c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u043d\u0430\u0431\u0438\u0432 \u0440\u0443\u043a\u0443 \u043d\u0430 \u0441\u0430\u043c\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u0434\u0430\u043b\u044c\u0448\u0435 \u2013 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0433\u043e\u043b\u043e\u0432\u0443 USB-\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430. \u0417\u0430\u0442\u0435\u043c \u2013 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0438, \u0447\u0442\u043e \u043a\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u043c, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041d\u043e \u0432\u043e\u0442 \u0431\u0435\u0434\u0430, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b ULPI \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 SystemC. \u041c\u044b \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u044d\u0442\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c. \u041d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e, \u043c\u044b \u0432\u043b\u0430\u0434\u0435\u0435\u043c \u0432\u0441\u0435\u043c\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u043d\u0430\u0432\u044b\u043a\u0430\u043c\u0438 \u0438 \u0433\u043e\u0442\u043e\u0432\u044b \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u044f\u0434\u0440\u0430. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c!<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wv\/qr\/c7\/wvqrc75qe56qomzekbh-auqryts.jpeg\"><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-311408","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=311408"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311408\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}