tasks.v2
来自「將Verilog設計轉成VHDL設計的程式」· V2 代码 · 共 21 行
V2
21 行
entity tasks isend tasks;arhitecture VL2VHDL of tasks issignal p : Bit;signal R : Bit;procedure add(b, a : in bit; c : out bit; );begin R <= 1; if (a = b) then c <= 1 and R; else c <= 0; endif;end add;beginprocess begin add (1,0,p);end process;end VL2VHDL;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?