need a help in programming a encoder using verilogA

Status
Not open for further replies.

hareharan

Newbie level 1
Joined
Oct 25, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
7
can anyone share me a sample program on encoder logic in verilogA.if any one could help me out with a example for 2 or 3 combinations at least using a "if" statement or a case statement would help me to understand better.
how do I represent bits in verilogA , for ex in vhdl we write in_ std_logic_vector[3 downto 0]; later when we write process(s) and case statement when "000"=>I<="0000001".the bits in the case statement gets mapped to vector statemnt .how can I do like this in verilogA?

Thanks in advance
 
Last edited:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…