Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - rslatch model

 
Thread Tools Search this Thread
Old 06-03-2006, 10:51 PM   #1
Default rslatch model


Hi,

Im working on a structural rs latch model but the q and nq initial
values are wrong. When I tried to assign '0' and '1' initial values for
x_q and x_nq in the architecture declaration the simulator got in an
infinite loop. How can modify this model to reflect the correct
beginning values of q and nq?


LIBRARY ieee;
use ieee.std_logic_1164.all;

ENTITY rslatch IS
PORT( s, r : IN std_logic;
q, nq : OUT std_logic);
END rslatch;

ARCHITECTURE a OF rslatch IS
signal x_q: std_logic;
signal x_nq: std_logic;
BEGIN
x_q <= r nor x_nq;
x_nq <= s nor x_q;

nq <= x_nq;
q <= x_q;
END a;


Thanks
Attila


Attila Csosz
  Reply With Quote
Old 06-04-2006, 05:00 AM   #2
Mike Treseler
 
Posts: n/a
Default Re: rslatch model
Attila Csosz wrote:

> Im working on a structural rs latch model but the q and nq initial
> values are wrong.


http://groups.google.com/groups/sear...29%22+practice


Mike Treseler
  Reply With Quote
Old 06-04-2006, 11:58 AM   #3
Attila Csosz
 
Posts: n/a
Default Re: rslatch model
I need the (this) structural model for some reason.

Thanks
Attila



Mike Treseler wrote:
> Attila Csosz wrote:
>
>> Im working on a structural rs latch model but the q and nq initial
>> values are wrong.

>
> http://groups.google.com/groups/sear...29%22+practice
>



Attila Csosz
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
model question Prasanth.lj MCITP 0 06-25-2007 09:52 AM
Rental Subscription Model Fails To Spread Black Locust DVD Video 0 09-18-2005 09:13 AM
Can't find Motherboard model on PCB! A+ Certification 5 08-06-2004 07:33 AM
DoD model Vs OSI J. Q. Etuo, MSCE 2003, A+ 2003 A+ Certification 1 05-20-2004 01:05 AM
Netflix Business Model Patented. Scot Gardner DVD Video 2 09-22-2003 01:24 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46