📄 ex_2_3_4_consolw_io.vhd
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -