⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 问“vhdl”的问题.mht

📁 精华BBS贴子
💻 MHT
📖 第 1 页 / 共 5 页
字号:
                      <TD vAlign=3Dtop><SPAN class=3Dbold><SPAN=20
                        =
class=3Dsmalltxt>=CE=CA=A1=B0VHDL=A1=B1=B5=C4=CE=CA=CC=E2=A3=A1=A3=A1<BR>=
<BR></SPAN></SPAN><BR>library=20
                        ieee;<BR>use ieee.std_logic_1164.all;<BR>use=20
                        ieee.std_logic_arith.all;<BR>use=20
                        ieee.std_logic_unsigned.all;<BR><BR>entity =
stopwatch=20
                        is<BR>&nbsp; &nbsp; &nbsp; &nbsp; =
port(reset&nbsp;=20
                        &nbsp; &nbsp; &nbsp; :in std_logic;<BR>&nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;on_off&nbsp; &nbsp; &nbsp; =
&nbsp; :in=20
                        std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;sysreset:in=20
                        std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;clk&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        :in std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;choose&nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(7 downto=20
                        0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp;&nbsp;&nbsp;segment<IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(6 downto=20
                        0));<BR>end stopwatch;<BR>&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        <BR>architecture structure of stopwatch =
is<BR>&nbsp;=20
                        &nbsp; &nbsp; &nbsp; component keyin =
is<BR>&nbsp; &nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
                        port(reset&nbsp; &nbsp; &nbsp; &nbsp; :in=20
                        std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;on_off&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; :in std_logic;<BR>&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;clk&nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; :in std_logic;<BR>&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;&nbsp;&nbsp;clk1&nbsp;=20
                        &nbsp; &nbsp; &nbsp; :in std_logic;<BR>&nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;reset0&nbsp; &nbsp; &nbsp; =
&nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic;<BR>&nbsp; &nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;on_off0<IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic);<BR>&nbsp; &nbsp;=20
                        &nbsp; &nbsp; end component;<BR>&nbsp; &nbsp; =
component=20
                        clk_div<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        port(sysreset&nbsp; &nbsp; &nbsp; &nbsp; :in=20
                        std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;clk&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; :in =
std_logic;<BR>&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;clk0&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp;=20
                        &nbsp; &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic;<BR>&nbsp; &nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;clk1&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp;=20
                        &nbsp; &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic);<BR>&nbsp; &nbsp;=20
                        &nbsp; &nbsp; end component;<BR>&nbsp; &nbsp;=20
                        component&nbsp; &nbsp; &nbsp; &nbsp; control =
<BR>&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
port(sysreset:in=20
                        std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;reset0:in std_logic;<BR>&nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;on_off0:in =
std_logic;<BR>&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;clk0:in=20
                        std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;enable<IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic);<BR>&nbsp; &nbsp;=20
                        &nbsp; &nbsp; end component;<BR>&nbsp; &nbsp; =
component=20
                        time_counter <BR>&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; port (sysreset&nbsp; &nbsp; &nbsp; &nbsp; =
:in=20
                        std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp; &nbsp;reset0&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; :in std_logic;<BR>&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; =
&nbsp;enable&nbsp;=20
                        &nbsp; &nbsp; &nbsp; :in std_logic;<BR>&nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;=20
                        &nbsp;clk0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; :in std_logic;<BR>&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;=20
                        &nbsp;hr10&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(1 downto=20
                        0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp;&nbsp; &nbsp;hr&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(1 downto=20
                        0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp;&nbsp; &nbsp;min10&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(2 downto=20
                        0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp;&nbsp; &nbsp;min&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp;=20
                        &nbsp; &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(3 downto=20
                        0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp;&nbsp; &nbsp;sec10&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(2 downto=20
                        0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp;&nbsp; &nbsp;sec&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp;=20
                        &nbsp; &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(3 downto=20
                        0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp;&nbsp; &nbsp;sec01&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(3 downto=20
                        0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp;&nbsp; &nbsp;sec001&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(3 downto=20
                        0));<BR>&nbsp; &nbsp; <BR>&nbsp; &nbsp; end=20
                        component;<BR>&nbsp; &nbsp; &nbsp; &nbsp; =
component=20
                        display<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; port(sysreset&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        :in std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;clk&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :in=20
                        std_logic;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;hr10&nbsp; &nbsp; =
&nbsp; &nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; :in =
std_logic_vector(1=20
                        downto 0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;hr&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        :in std_logic_vector(1 downto 0);<BR>&nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;min10&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; :in =
std_logic_vector(2=20
                        downto 0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;min&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; :in =
std_logic_vector(3=20
                        downto 0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;sec10&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :in=20
                        std_logic_vector(2 downto 0);<BR>&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;&nbsp;&nbsp;sec&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
:in=20
                        std_logic_vector(3 downto 0);<BR>&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;sec01&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; :in =
std_logic_vector(3=20
                        downto 0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp;&nbsp;&nbsp;sec001&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :in=20
                        std_logic_vector(3 downto 0);<BR>&nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp;=20
                        &nbsp;&nbsp;&nbsp;choose&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp; &nbsp; &nbsp; &nbsp; <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =
std_logic_vector(7 downto=20
                        0);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        &nbsp;&nbsp;&nbsp;segment&nbsp; &nbsp; &nbsp; =
&nbsp;=20
                        <IMG=20
                        =
src=3D"http://25.20.176.12/bbs/images/smilies/shocked.gif"=20
                        align=3DabsMiddle border=3D0>ut =

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -