[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Register enables in Icarus



On Thu, 06 Jan 2005 14:45:07 -0500, David Howland
<dhowland@xxxxxxxxxxxxx> wrote:
Say I want to make a clocked, enabled register.  This would simply be
the following in behavioral verilog:

always @(posedge clk) begin

what if you try:

       always @(posedge clk or en) begin

with Icarus?

--
- Charles Lepple


You cant have the line always @(posedge clk or en) begin

becasue you cant have both syncronous and asyncronous call like that. The correct format would be
always @(posedge clk or negedge en) begin


NH
----- Original Message ----- From: "Charles Lepple" <clepple@xxxxxxxxx>
To: <geda-user@xxxxxxxx>
Sent: Thursday, January 06, 2005 12:54 PM
Subject: Re: gEDA-user: Register enables in Icarus



On Thu, 06 Jan 2005 14:45:07 -0500, David Howland
<dhowland@xxxxxxxxxxxxx> wrote:
Say I want to make a clocked, enabled register.  This would simply be
the following in behavioral verilog:

always @(posedge clk) begin

what if you try:

       always @(posedge clk or en) begin

with Icarus?

--
- Charles Lepple