BTF - B23 - Constant functions

From: Clifford E. Cummings (cliffc@europa.com)
Date: Fri May 02 1997 - 09:06:30 PDT


Subject: BTF - B23 - Constant functions

Behavioral Task Force - Enhancement Request
Assigned Enhancement Request Number: B23
Enhancement Name (Description): Constant functions
Date Submitted: 970418
Requestor: kurt@wsfdb.com (Kurt Baty)

Status: RO
Is enhancement intended to be synthesizable?:

===== Notes from meeting held at IVC 3/31/97-4/2/97 =====

Constant functions - Kurt Baty lead the discussion
Would be very valuable/useful to IP and code re-use

Objection - requires interpreter in the compile phase

Action item: Kurt to send potential examples

//-----------------------------------------------------------------
// Generate Example:
//-----------------------------------------------------------------
module #(width, depth) example_fifo (dout, full, empty, din,
                                     clk, reset, push, pop);

  parameter width = 16, depth = 16;
  parameter counter_width = clogb2(depth);
  //-----------------------------------------------------------------
  // clogb2 is supposed to be a constant function that calculates the
  // ceiling of the log-base 2 of the argument.
  // The above parameter definition requires a constant function.
  // This would require another enhancement to the LRM
  //-----------------------------------------------------------------

//********************************************************************//
// Cliff Cummings E-mail: cliffc@europa.com //
// Sunburst Design Phone: 503-579-6362 / FAX: 503-579-7631 //
// 15870 SW Breccia Dr., Beaverton, OR 97007 //
// //
// Verilog & Synthesis Training / On-Site Training //
// Verilog, VHDL, Synopsys, LMG, FPGA, Consulting and Contracting //
//********************************************************************//



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:54:40 PDT and
sponsored by Boyd Technology, Inc.