Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

VT220-compatible console on Cyclone IV EP4CE55F23I7

License

NotificationsYou must be signed in to change notification settings

Harry-Chen/fpga-virtual-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project implements a VT220-compatible console with extra color support on Cyclone IV EP4CE55F23I7. The experimental board has PS/2 keyboard input and HDMI video output, with UART transceiver to communicate with a computer.

The project is developed under Quartus Prime Lite 18.0, we do not provide any warranty for successful compilation on any other software.

Usage (Arch Linux as example)

  1. Compile the project and program the FPGA board.
  2. Connect the keyboard and monitor.
  3. Connect the FPGA board with PC via a USB-UART cable.
  4. Start a serial tty on PC, such as:systemctl start serial-getty@ttyUSB0.service.
  5. Login, and runstty cols 100 rows 50 to set display area. Alternatively, you can rundemo/set_vt220.sh ordemo/set_xterm.sh to setup necessary environment for VT220 or XTerm-256color mode, respectively.
  6. Enjoy it!

Demonstration

There are some fancy commands. For example,

  1. Rundemo/asciicam.sh to display colored video captured from your camera.
  2. Rundemo/video.sh [video_path] to play video fromvideo_path.
  3. Runbb to show an ASCII-art demo.
  4. Runcacafire to show the colored fire.

Some other demos are in thedemo folder, you can also explore for more possibilities!

Notice

  1. The default baud is 3M, which is not a standard baud. You might need to modify the configuration ofgetty to make it communicate normally with the FPGA. Or you can slow it down (for example, 115200) insrc/DataType.svh, which will lead to bad experiences such as slow refreshing rate.
  2. There might be some timing issue with the VGA signal. You can adjust your monitor manually if it doesn't display image as expected.
  3. WhenTERM=vt220, there is no color support but everything will work well. WhenTERM=xterm-256color, there is color support, but there might be some strange behaviors for we have not implemented all instructions in that mode.
  4. src/storage contains somemif files that we have designed as the content of initial screen of the console. The default used isTextRamLogBig.mif, the others are all in80*40 chars so cannot fill the whole screen.

Test and Simulation

There are some test benches in foldertestbench. You can use ModelSim to run simulation with source file properly attached. We also provide a debug probe in the top module with some signal linked to it. The two 7-segment LEDs on board can also show the internal status of the console, or theCommandsParser, to be precise.

Documentation

You can refer todoc/report.pdf for a detailed explanation, ordoc/presentation.pdf for a quick view of this project .doc/reference contains some details and specifications of console that we have implemented.

The source code isnot very well documented, we sincerely apologize for the consequential inconvenience.

License

This project is released under GPLv3, seeLICENSE for legal text.

About

VT220-compatible console on Cyclone IV EP4CE55F23I7

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp