ex_2_3_4_consolw_io.vhd
来自「This is the course for VHDL programming」· VHDL 代码 · 共 19 行
VHD
19 行
use std.textio.all;entity console is end console;architecture beh of console isbegin process variable LOUT, LIN : LINE ; variable N: integer; begin write(LOUT,string'("Please enter a number"));--Form ASCII string at LOUT writeline(OUTPUT, LOUT) ; --Give prompt message to console readline(INPUT, LIN); --Wait for user input read(LIN,N); --Convert LINE buffer to integer at N write(LOUT, string'("You typed ")); -- Form ASCII string at LOUT write(LOUT, N); --Convert N to ASCII string at LOUT writeline (OUTPUT, LOUT) ; --Send LOUT to console wait; end process;end beh;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?