Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > sequence generator

Reply
Thread Tools

sequence generator

 
 
Vivek Menon
Guest
Posts: n/a
 
      06-15-2006
Hi,
I need to generate a sequence "0110". any ideas.
VV

 
Reply With Quote
 
 
 
 
Zara
Guest
Posts: n/a
 
      06-16-2006
On 15 Jun 2006 12:23:20 -0700, "Vivek Menon" <>
wrote:

>Hi,
>I need to generate a sequence "0110". any ideas.



signal sequence:std_logic_vector(1024 to 1027):="0110";

There you are!
 
Reply With Quote
 
 
 
 
Jonathan Bromley
Guest
Posts: n/a
 
      06-16-2006
On 15 Jun 2006 12:23:20 -0700, "Vivek Menon"
<> wrote:

>I need to generate a sequence "0110". any ideas.


Typical idiotic student homework problem (it's the
problem that's idiotic; no idea about the student).

Hardware has a distressing habit of continuing
to function after you've stopped looking at it.
What, pray, is your sequence generator supposed
to do before, and after, the sequence is generated?
What is the user supposed to do in order to get
the sequence generator to start? And, come to
that, what the hell use is there for a sequence
"0110"?

If academics took a bit more trouble to couch
their problems in a realistic form rather than
providing trivial exercises that match their
favourite page in the textbook, then the
engineering profession as a whole would
be in much better shape, and their students
would be more likely to want to solve the
problems for themselves and less likely
to come whingeing to the newsgroups.

Speaking, through gritted teeth, as one who
spent a fair few years dreaming-up student
homework assignments...
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK

http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
 
Reply With Quote
 
dipesh.trivedi
Guest
Posts: n/a
 
      06-19-2006
hey buddy,
u just have to do is. reset the counter with the required sequence. n
then
assign it within the clock. i mean to say u can make the ring counter
which will provide u with the sequence generator.

signal seq: std_logic_vector (3 downto 0);
process( clk)
begin
if ( reset = '1')
seq <= "0110";
elsif (clk'event and clk = '1') then
seq <= seq (0) & seq( 3 downto 1);
end if ;


end process;


i hope its write. neways am writting code in VHDL aftr 2 years.
if am wrong pls correct me.



Jonathan Bromley wrote:
> On 15 Jun 2006 12:23:20 -0700, "Vivek Menon"
> <> wrote:
>
> >I need to generate a sequence "0110". any ideas.

>
> Typical idiotic student homework problem (it's the
> problem that's idiotic; no idea about the student).
>
> Hardware has a distressing habit of continuing
> to function after you've stopped looking at it.
> What, pray, is your sequence generator supposed
> to do before, and after, the sequence is generated?
> What is the user supposed to do in order to get
> the sequence generator to start? And, come to
> that, what the hell use is there for a sequence
> "0110"?
>
> If academics took a bit more trouble to couch
> their problems in a realistic form rather than
> providing trivial exercises that match their
> favourite page in the textbook, then the
> engineering profession as a whole would
> be in much better shape, and their students
> would be more likely to want to solve the
> problems for themselves and less likely
> to come whingeing to the newsgroups.
>
> Speaking, through gritted teeth, as one who
> spent a fair few years dreaming-up student
> homework assignments...
> --
> Jonathan Bromley, Consultant
>
> DOULOS - Developing Design Know-how
> VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
>
> Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
>
> http://www.MYCOMPANY.com
>
> The contents of this message may contain personal views which
> are not the views of Doulos Ltd., unless specifically stated.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to iterate over sequence and non-sequence ? stef mientki Python 13 10-20-2007 10:21 AM
UART with fractional baudrate generator ? Or fractional baudrate generator alone Martin Maurer VHDL 3 04-19-2006 01:26 PM
subtle side effect of generator/generator expression bonono@gmail.com Python 9 10-16-2005 06:42 PM
BOOT SEQUENCE (how to change boot sequence) bird Computer Support 13 12-24-2003 02:20 AM
generator function within a generator function doesn't execute? TheDustbustr Python 1 07-25-2003 10:45 AM



Advertisments