FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2006, 10:51 PM
Attila Csosz
Guest
 
Posts: n/a
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
Reply With Quote
  #2 (permalink)  
Old 06-04-2006, 05:00 AM
Mike Treseler
Guest
 
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
Reply With Quote
  #3 (permalink)  
Old 06-04-2006, 11:58 AM
Attila Csosz
Guest
 
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
>

Reply With Quote
Reply

Bookmarks


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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the difference between two process model & one process model GrIsH FPGA 6 01-12-2009 03:26 PM
CPU Model for Co-simulation akineko FPGA 2 10-16-2008 01:10 PM
ram model ashutosh_k VHDL 2 04-24-2006 06:04 PM
Xilinx FPGA - Behaviorial Model Transferred Instead of Place-and-routed Model Chloe FPGA 4 12-07-2005 07:15 AM
Re: demux model Tim Hubberstey VHDL 0 07-04-2003 08:00 AM


All times are GMT +1. The time now is 11:48 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved