Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xronos support for 64bit unsigned integers? #4

Open
robstewart57 opened this issue Oct 3, 2015 · 0 comments
Open

Xronos support for 64bit unsigned integers? #4

robstewart57 opened this issue Oct 3, 2015 · 0 comments

Comments

@robstewart57
Copy link

Xronos happily compiles this actor, which uses an unsigned 64bit integer:

actor CastActor() uint(size=32) In ==> uint(size=32) Out :
my_action: action In:[a] ==> Out:[d]
  var
    uint(size=32) b,
    uint(size=64) c,
    uint(size=32) d
  do
    b := 8;
    c := a * b;
    d := c / 8;
  end
end

Compiler output:

6:22:17 PM: Orcc backend done.
6:23:41 PM: *********************************************************************************
6:23:41 PM: * Orcc version:   2.3.1.qualifier
6:23:41 PM: * Backend:        Xronos Verilog
6:23:41 PM: * Project:        64bit-cast-test
6:23:41 PM: * Network:        xdf.TopNetwork
6:23:41 PM: * Output folder:  /home/me/foo/64bit-casting/vgen
6:23:41 PM: *********************************************************************************
6:23:41 PM: Export libraries sources into /home/me/foo/64bit-casting/vgen/lib... 
6:23:41 PM: Library export done in 0.092s
6:23:41 PM: Network validation
6:23:41 PM: Network generation
6:23:41 PM: Generating Instances...
6:23:41 PM: -------------------------------------------------------------------------------
6:23:41 PM: NOTE: Actors to be generated: 1
6:23:41 PM: -------------------------------------------------------------------------------
6:23:41 PM: Compiling instance: CastActor (1/1)
6:23:42 PM:      - Compiled in: 1.09s
6:23:42 PM: *******************************************************************************
6:23:42 PM: Xronos done in 1.211s
6:23:42 PM: Generating Network...
6:23:42 PM: Generating Testbenches...
6:23:42 PM: Done in 1.408s. Result: 0 file(s) written - 0 file(s) cached
6:23:42 PM: Children generation
6:23:42 PM: Done in 0.0s. Result: 0 file(s) written - 0 file(s) cached
6:23:42 PM: Orcc backend done.

Can I take from that that the Verilog backend with Xronos does support unsigned 64bit integers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant