Verilog Gadget.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Verilog-Gadget 作者: poucotm 项目源码 文件源码
def run(self, edit):
        if not check_extension(self.view.file_name(), self.view.name()):
            return

        text = self.view.substr(sublime.Region(0, self.view.size()))
        text = remove_comment_line_space(text)

        mod_name, port_list, param_list, clk, rst, srst = parse_module_param_port(text, 'Instantiate Module')
        if mod_name == "":
            return
        vgs = get_prefs()
        iprefix = vgs.get("inst_prefix", "inst_")

        minst = module_inst(mod_name, port_list, param_list, iprefix)
        sublime.set_clipboard(minst)
        disp_msg("Instantiate Module : Copied to Clipboard")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号