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

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [scripts/] [uart_input.bash] - Rev 43

Compare with Previous | Blame | View Log

#!/bin/bash

##############################################
# This file reads characters into a file. The
# Verilog testbench then opens this file and
# writes it to the UART RX character wise.
# 
# Call this like:
# bash uart_input.bash <filename> 
##############################################

IFS=""

while true
do
        read -n1 -r -d "" char
        echo -n "$char" >> "$1"
done

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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