Google
 

VLSI?

There just isn't a great source of detailed VLSI/DIGITAL information out there. If I actually keep this up, this should be it. However, unless people take an active interest and submit some ideas, tutorials, examples, may be some cores etc., it may die very soon. So, please let me know what you think and what you're working on. I'd love to post people's contributions.

What's On the Site ?
I have a plan to give the konowledge of VLSI. This is not a private web site. i will allow the public to modify the tutorial . if you got good knowledge,you send to us. This is really a site for ASIC/DIGITAL beginners. My interests run mainly to digital design and how to apply that to ASIC/FPGA/Board design and how to verify them. So there is a definite bias towards that on this site. However, I would be very pleased to post information concerning embedded systems, analog design, VLSI. You have to tell me. This site is very useful for enginering students. We have a plan to publish seminar topics and projects.I will give the path of the software.

The Future...
Now i just started only. So i want the opinion of the viewers. Which type of site you like. I have a plan to put a latest topics. While only some of the sections on this site have useful or interesting things at the moment, I hope that they will fill out quickly. Provided I get some positive response, things should be added on a regular basis. Also, I'd like to set up a Frequently asked questions for all the sections...may be trying something new.. ..time will decide.

What's New ?
SystemVerilog tutorial is the latest topics. Mainly it contain main other topics that is Assertion. Now i start to collects the data, it is in final stages.

Sunday, January 27, 2008

VHDL Program_blackjack

library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity blackjack is port(card_out,green,red:out bit;
score:buffer std_logic_vector(7 downto 0);
data,d_data:in std_logic_vector(7 downto 0);
rst,newcard,finish: in bit; clk:in bit);
end blackjack;
architecture blackstruct of blackjack is
type state is (s0, s1, s2,s3, s4, s5, s6, s7);
signal p_state, n_state:state;
begin clock:
process(rst,clk)
begin
if rst='1' then p_state<=s0;
else if (clk'event and clk='1')then p_state<=n_state;
end if;
end if;
end process clock;
present: process(p_state)
--variable score_buf: std_logic_vector(7 downto 0);
begin
case p_state is when s0 => card_out<='0';
green<='0'; red<='0';
score<="00000000";
n_state<=s1;
when s1 => card_out<='0';
if newcard<='1' then n_state<=s2; else n_state<=s1;
end if;
when s2=> card_out<='1'; n_state<=s3;
when s3=> score<=score+data; n_state<=s4;
when s4=> if finish='1' then n_state<=s5;
else n_state<=s1;
end if;
when s5=> if score>d_data then green<='1';
else red<='1';
end if; n_state<=s0;
when others=> score <="11111111"; end case;
end process present;
end architecture blackstruct;

1 comment:

Benison said...

full copy yaar , try different,actually from wher u copied this