[求助]初来乍到 问一个简单的问题呀 有关于 十进制加法器的

- UID
- 142939
- 性别
- 男
|
[求助]初来乍到 问一个简单的问题呀 有关于 十进制加法器的
library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity adder is port(cin:in std_logic; a,b:in std_logic_vector(3 downto 0); s ut std_logic_vector(3 downto 0); co ut std_logic); end adder; architecture behav of adder is signal temp:std_logic_vector(4 downto 0); begin process(a,b,cin) begin temp<=('0'&a)+b+cin; if(temp(3 downto 0)>9 or (temp(4)='1')then s<=temp(3 downto 0)+6; co<='1'; else s<=temp(3 downto 0); co<='0'; end if; end process; end behav;
unexpected end-of-file -try using the Text Editor's Syntax Coloring command to find the missing delimiter or keyword |
|
|
|
|
|

- UID
- 142939
- 性别
- 男
|
就是error:unexpected end-of-file-try using the Text Editor's Syntax Coloring command to find the missing delimiter or keyword
什么意思呀 报错 不董呀 谁帮着看看呀 好急呀
|
|
|
|
|
|
 
- UID
- 132277
- 性别
- 男
|
大哥
你这里 (temp(4)='1'多了一个括号 |
╔☆→────────────────←☆╗
┊寻觅在电子中, , , 寻求适合自己的一席┊┊┊┊
┊也许生活本忙碌, 想享受安逸只能是心态了吧┊
╚☆→────────────────←☆╝ & |
|
|
|
|
|