mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Simplified profile for UART boot; added warnings on UART Rx errors
This commit is contained in:
parent
25d0f6305a
commit
1e19cf9f14
@ -2,8 +2,8 @@ echo "Hello this ~/.profile is meant to demonstrate running some basic commands
|
||||
echo "I am $(whoami)"
|
||||
echo "And I am on $(hostname)"
|
||||
touch myFile.txt
|
||||
echo "This is a line of text." > myFile.txt
|
||||
echo "A second line of text." >> myFile.txt
|
||||
echo "Hello World!" > myFile.txt
|
||||
echo "And farewell!" >> myFile.txt
|
||||
mkdir myDir
|
||||
mv myFile.txt myDir
|
||||
echo "Created myFile.txt and moved it to myDir. It contains:"
|
||||
@ -17,9 +17,6 @@ cd myDir
|
||||
ln -s ../myScript.sh symLinkToMyScript.sh
|
||||
echo "Created symLinkToMyScript.sh. Running it yields:"
|
||||
./symLinkToMyScript.sh
|
||||
ln ../myScript.sh hardLinkToMyScript.sh
|
||||
echo "Created hardLinkToMyScript.sh. Running it yields:"
|
||||
./hardLinkToMyScript.sh
|
||||
echo "Now let\'s remove all these example files and scripts"
|
||||
cd /
|
||||
rm -r myDir
|
||||
@ -28,10 +25,5 @@ echo "Here is disk usage:"
|
||||
df -h
|
||||
echo "And here are the current processes:"
|
||||
ps
|
||||
echo "We can create a user."
|
||||
cd /
|
||||
mkdir home
|
||||
echo "password\npassword\n" | adduser myUser
|
||||
su -c "cd ~; echo \"I am $(whoami) (a new user) and my home directory is $(pwd)\""
|
||||
echo "And finally a login prompt."
|
||||
login
|
||||
|
@ -316,6 +316,9 @@ module uartPC16550D(
|
||||
end else begin
|
||||
if (rxstate == UART_DONE) begin
|
||||
RXBR <= #1 {rxoverrunerr, rxparityerr, rxframingerr, rxdata}; // load recevive buffer register
|
||||
if (rxoverrunerr) $warning("UART RX Overrun Error\n");
|
||||
if (rxparityerr) $warning("UART RX Parity Error\n");
|
||||
if (rxframingerr) $warning("UART RX Framing Error\n");
|
||||
if (fifoenabled) begin
|
||||
rxfifo[rxfifohead] <= #1 {rxoverrunerr, rxparityerr, rxframingerr, rxdata};
|
||||
rxfifohead <= #1 rxfifohead + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user