OpenCores
URL https://opencores.org/ocsvn/zap/zap/trunk

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [scripts/] [uart_input.bash] - Blame information for rev 43

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 43 Revanth
#!/bin/bash
2
 
3
##############################################
4
# This file reads characters into a file. The
5
# Verilog testbench then opens this file and
6
# writes it to the UART RX character wise.
7
#
8
# Call this like:
9
# bash uart_input.bash 
10
##############################################
11
 
12
IFS=""
13
 
14
while true
15
do
16
        read -n1 -r -d "" char
17
        echo -n "$char" >> "$1"
18
done

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.