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

gEDA-user: iverilog question ?



[ Ales here, I'm reposting this since majordomo didn't recognize the
  e-mail as being subscribed to the geda-dev/geda-user mailinglist.  ]

-- Cut here --
Delivery-Date: Mon, 04 Oct 2004 17:02:13 -0400
From: "Abdul Ghouse" <abdul_ghouse@xxxxxxxxxxxx>

I am using

OS version :
Red Hat Enterprise Linux WS release 3 (Taroon)
Kernel 2.4.21-4.0.1.ELsmp on an i686

iverilog version :
Icarus Verilog version 0.7 ($Name: s20040915 $)
Copyright 1998-2003 Stephen Williams

Our code compiles fine until it hits real variables, values and
expressions.
many of our libraries files have real values and expressions.
-----------------------
eg :
Errors :

/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:226:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:227:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:228:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:229:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:230:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:231:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:232:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:233:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:234:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:235:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:236:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:237:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:238:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:239:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:240:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:241:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:242:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:243:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:244:
error: spec
param value must be a constant expression.
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/sram256x24.v:245:
error: spec
param value must be a constant expression.

-------------------------


Library  file :
/csc/proj/kalos2/passport_p18/2001.2/verilog/srams/srams256x24.v

Line
specify
  specparam DF     = 1.0,
            tACC  = 1.79015*DF, // access time
<---------- line 226
            tCYC   = 2.33392*DF,   // cycle time
            tHCEB  = 0.803692*DF,  // minimum clock high time.
            tLCEB  = 0.421385*DF,  // minimum clock low time.
            tWSr   = 0.073*DF,   // WEB rising setup time
            tWSf   = 0.127*DF,   // WEB falling setup time
            tIS    = 0.444462*DF,   // Data setup time
            tWH    = 0.076*DF,    // WEB hold time
            tAS    = 0.254385*DF,    // Address setup time
            tAH    = 0*DF,    // Address hold time
            tIH    = 0*DF,    // Data hold time
            tCSf   = 0.803692*DF,    // CSB falling setup time
            tCSr   = 0.133*DF,    // CSB rising setup time
            tCH    = 0*DF,    // CSB hold time
            tHOE   = 0.434615*DF,   // OEB disable time
            tLOE   = 0.465769*DF,  // OEB enable time
            tLBA   = 0.622846*DF,   // BA disable time
            tHBA   = 0.600538*DF,  // BA enable time
            tHW    = 0.372769*DF,    // WEB disable time
            tLW    = 0.424538*DF,   // WEB enable time         <
---------- line 245
            PATHPULSE$CE$O = 0,
            PATHPULSE$OEB$O = 0;




----------------------

iverilog does not seem to support these expressions in the values
assigned to variables.
Is there a work around for this ?



Thanks in advance.
Abdul