From: Clifford E. Cummings (cliffc@europa.com)
Date: Fri May 02 1997 - 09:02:30 PDT
Subject: BTF - B16 - Access to last specified bit
Behavioral Task Force - Enhancement Request
Assigned Enhancement Request Number: B16
Enhancement Name (Description): Access to last specified bit
Date Submitted: 970319
Requestor: adamk@cyrix.com (Adam Krolnik)
Status: RO
Is enhancement intended to be synthesizable?:
8. Access to last specified bit.
It also would be nice to have an alternate method of accessing the last bit
(or bits?) of a register without having to use the exact number of the bit.
E.g.
reg [31:0] a;
if (a[<last bit>) // Now have to say a[31]
<do something>
[Oops, change a to a 33 bit signal. Would have to change reference from 31
to 32 unless have alternate way to say this.]
From: mac@silicon-sorcery.com
Date: Wed, 19 Mar 97 14:22:50 PST
How about a[$#a] (sorry, too much perl recently...)
{this example you provide seems to indicate you recognize that
verilog already has what you term "mutable bit selects"... ? }
If there was something like sizeof(a), (your proposal 7) then
this would be if (a[sizeof(a)]), n'est ce pas?
//********************************************************************//
// 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.