Jump to content
Sign in to follow this  
tudor.timi

Length of integrals to foreign layer restricted to 64 bits

Recommended Posts

Why artificially restrict the length of integral expressions at the language body to 64 bits? Why not also provide (separately if preferred) an extra type/function qualifier on the PSS side and the corresponding header on the C/SV/foreign language side to allow passing of arbitrary data lengths?

Share this post


Link to post
Share on other sites

From the PSWG:

PSS tests are often realized through generating code in target languages, and in particular C/C++/assembly-language. PSS numeric types are restricted to primitive representation available in C/C++. Arbitrary length integers would not have obvious portable target mapping. We can consider target mapping to 128 bit numeric types, as these are available in many C compilers. However, it would be good to understand the application you have in mind. Many applications for large numeric values would be more adequately modeled as structs, strings, or byte-arrays.

Share this post


Link to post
Share on other sites

Cryptographic applications generally use long number arithmetic. I get what you mean, that it's possible to split a key, for example, into an array of words of bus width, since the key has to get into a cryptographic accelerator somehow. In a constrained random TB it would be done via a series of bus transfers and in an SoC context via a series of STORE instructions.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×