mirror of
				https://github.com/Klagarge/Cursor.git
				synced 2025-10-31 14:09:17 +00:00 
			
		
		
		
	Initial commit
This commit is contained in:
		
							
								
								
									
										16
									
								
								Libs/Gates/hdl/mux4to1_sim.vhd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Libs/Gates/hdl/mux4to1_sim.vhd
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| ARCHITECTURE sim OF mux4to1 IS | ||||
|  | ||||
| BEGIN | ||||
|  | ||||
|   muxSelect: process(sel, in0, in1, in2, in3) | ||||
|   begin | ||||
|     case to_integer(sel) is | ||||
|       when 0 => muxOut <= in0 after delay; | ||||
|       when 1 => muxOut <= in1 after delay; | ||||
|       when 2 => muxOut <= in2 after delay; | ||||
|       when 3 => muxOut <= in3 after delay; | ||||
|       when others => muxOut <= 'X' after delay; | ||||
|     end case; | ||||
|   end process muxSelect; | ||||
|  | ||||
| END ARCHITECTURE sim; | ||||
		Reference in New Issue
	
	Block a user