![]() |
|
|
|
#1 |
|
Hi,
I need to generate a sequence "0110". any ideas. VV Vivek Menon |
|
|
|
|
#2 |
|
Posts: n/a
|
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! Zara |
|
|
|
#3 |
|
Posts: n/a
|
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. Jonathan Bromley |
|
|
|
#4 |
|
Posts: n/a
|
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. dipesh.trivedi |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sequence of exam - 536 & 526 | Abhishek | MCTS | 2 | 07-29-2007 10:46 PM |
| Re: Sequence of Events: looking for advice | Patrick Michael | A+ Certification | 1 | 11-09-2004 01:27 AM |
| Re: Sequence of Events: looking for advice | AG | A+ Certification | 0 | 11-08-2004 03:50 PM |
| Re: contradictions in POST sequence | Wetware | A+ Certification | 0 | 08-07-2003 06:50 PM |
| Re: 7. The truth about our creator. .7 | john smith | DVD Video | 2 | 07-25-2003 03:54 AM |