Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Permenkaret Permenkaret is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 351
Rep Power: 14
Permenkaret mempunyai hidup yang Normal
Default [HELP] VHDL code for encoder 8 to 3

permisi agan2 semua sesepuh komputer

ane ada tugas suruh buat code VHDL buat encoder 8 to 3

nyari di google dah dapet ini :




Quote:





LIBRARY ieee ;

USE ieee.std_logic_1164.all ;



ENTITY encoder_8_3 IS

PORT ( i: IN STD_LOGIC_VECTOR(7 DOWNTO 0) ;

En : IN STD_LOGIC ;

y : OUT STD_LOGIC_VECTOR(2 DOWNTO 0) ) ;

END encoder_8_3 ;



ARCHITECTURE encoder8_3 OF encoder_8_3 IS

BEGIN

PROCESS ( i, En )

BEGIN

IF En = '1' THEN

CASE i IS

WHEN "00000001" => y y y y y y y y y

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 03:23 AM.


no new posts