Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#15 closed enhancement (fixed)

add computable parameter to soclib-cc

Reported by: ludovic.lhours@… Owned by: somebody
Priority: minor Component: component1
Keywords: Cc:

Description

This patch add the ability to compute a parameter value from a parameter.Reference. At the moment only template construction and value multiplication are implemented. Here is an example:

Port('caba:fifo_input', 'p_input', 2,

data_t=parameter.Template('sc_uint',

[ parameter.Reference('IP_BITWIDTH') * 4])),

Attachments (1)

computable_parameter.patch (1.9 KB) - added by ludovic.lhours@… 15 years ago.

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by ludovic.lhours@…

Attachment: computable_parameter.patch added

comment:1 Changed 15 years ago by Nicolas Pouillon

This patch is good, but I have heavier changes to SoCLib-cc under the hood, bringing this and most other binary operations for free.

comment:2 Changed 15 years ago by Nicolas Pouillon

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.