forked from Github_Repos/cvw
		
	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 "I am $(whoami)"
 | 
				
			||||||
echo "And I am on $(hostname)"
 | 
					echo "And I am on $(hostname)"
 | 
				
			||||||
touch myFile.txt
 | 
					touch myFile.txt
 | 
				
			||||||
echo "This is a line of text." > myFile.txt
 | 
					echo "Hello World!" > myFile.txt
 | 
				
			||||||
echo "A second line of text." >> myFile.txt
 | 
					echo "And farewell!" >> myFile.txt
 | 
				
			||||||
mkdir myDir
 | 
					mkdir myDir
 | 
				
			||||||
mv myFile.txt myDir
 | 
					mv myFile.txt myDir
 | 
				
			||||||
echo "Created myFile.txt and moved it to myDir. It contains:"
 | 
					echo "Created myFile.txt and moved it to myDir. It contains:"
 | 
				
			||||||
@ -17,9 +17,6 @@ cd myDir
 | 
				
			|||||||
ln -s ../myScript.sh symLinkToMyScript.sh
 | 
					ln -s ../myScript.sh symLinkToMyScript.sh
 | 
				
			||||||
echo "Created symLinkToMyScript.sh. Running it yields:"
 | 
					echo "Created symLinkToMyScript.sh. Running it yields:"
 | 
				
			||||||
./symLinkToMyScript.sh
 | 
					./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"
 | 
					echo "Now let\'s remove all these example files and scripts"
 | 
				
			||||||
cd /
 | 
					cd /
 | 
				
			||||||
rm -r myDir
 | 
					rm -r myDir
 | 
				
			||||||
@ -28,10 +25,5 @@ echo "Here is disk usage:"
 | 
				
			|||||||
df -h
 | 
					df -h
 | 
				
			||||||
echo "And here are the current processes:"
 | 
					echo "And here are the current processes:"
 | 
				
			||||||
ps
 | 
					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."
 | 
					echo "And finally a login prompt."
 | 
				
			||||||
login
 | 
					login
 | 
				
			||||||
 | 
				
			|||||||
@ -316,6 +316,9 @@ module uartPC16550D(
 | 
				
			|||||||
    end else begin
 | 
					    end else begin
 | 
				
			||||||
      if (rxstate == UART_DONE) begin
 | 
					      if (rxstate == UART_DONE) begin
 | 
				
			||||||
        RXBR <= #1 {rxoverrunerr, rxparityerr, rxframingerr, rxdata}; // load recevive buffer register
 | 
					        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
 | 
					        if (fifoenabled) begin
 | 
				
			||||||
          rxfifo[rxfifohead] <= #1 {rxoverrunerr, rxparityerr, rxframingerr, rxdata};
 | 
					          rxfifo[rxfifohead] <= #1 {rxoverrunerr, rxparityerr, rxframingerr, rxdata};
 | 
				
			||||||
          rxfifohead <= #1 rxfifohead + 1;
 | 
					          rxfifohead <= #1 rxfifohead + 1;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user