Project

General

Profile

Actions

Task #7726

closed

Support for binary masks in preparators

Added by Alexander Kamkin over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
High
Assignee:
Andrei Tatarnikov
Category:
Template Processor
Target version:
Start date:
11/15/2016
Due date:
11/18/2016
% Done:

0%

Estimated time:
Detected in build:
svn
Published in build:
2.4.3

Description

A preparator mask is assumed to be hexadecimal, and its size is calculated from the string representation.

I suggest extending the mask format as follows.

// Simple mask in the current format.
0000xxxx

// Symbol _ is ignored.
0000_xxxx

// Prefix '<base> specifies the base: b (B) stands for binary; h (H) stands for hexadecimal.
'b00001111_00001111_00001111_0000xxxx
'h0000_xxxx

// Prefix <width>'<base> specifies the bit width and the base.
32'b00001111_00001111_00001111_0000xxxx
32'h0000_xxxx
Actions

Also available in: Atom PDF