i need a help to solve a problem in VHDL
hi every one
I have a problem in VHDL I need someone to explain it to me
the problem said:
(a)The diagram below show an 8-bit shifter that shhifts input one place to the left. Write a VHDL module for the shifter
and the figure has a ( A(7 downto 0)==>inputs // B(7 downto 0)==>outputs)
and has Rin /Lout
(b) write a VHDL module that multiplies an 8-bit input (C) by (101)2 to give a 11-bit product(D).This can be accomplished by shifting C two place to the lift and adding the result to C. Use Two of the modules written in (a) as a components and an overloaded operator fo addithion.
I solve Part (a) with no errors,and in part (b) I need someone who help me to solve it.
the code for par (a) is:
-- Uncomment the following lines to use the declarations that are
-- provided for instantiating Xilinx primitive components.
entity shifter is
port(Clk: in bit;
Ain : in bit_vector(7 downto 0);
Bout : out bit_vector(7 downto 0));
architecture archi of shifter is
signal tmp: bit_vector(7 downto 0);
if (Clk'event and Clk='1') then
for i in 0 to 6 loop
also I want to do a project in VHDL can someone give me a good topics for that?:roll:
plz dont ignore me plzzzzz
|All times are GMT. The time now is 01:09 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.