The first thing I ever designed in vhdl was a PRBS tester which had an LFSR at its core. Your state machine process looks good to me but in your LFSR process I am not sure why you are using:
linear_feedback <= (not LSFR(1) xor LSFR(0));
I'm not too sure what initial value you use as a seed...
hi there, am trying to synthesis a generic clock divider I have created. it works fine in simulation with modelsim but xilinx syntheses tool xst is not happy. - see code below:
library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.NUMERIC_STD.all;
entity generic_clk_divider is
generic
(...
oops, missed out variable declaration in above code. looks like my brackets are a bit dodgy too.
don't forget:
variable Qout : integer range 0 to 11;
before begin block.
gstar
Hi there, I'm a bit of a newbie to vhdl but I have my doulos golden guide beside me and the answer your looking for is no, you can't put a process inside a procedure.
Processes can only be used in:
architecture - between begin/end
generate - between begin/end
entity - between begin/end...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.