element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
FPGA
  • Technologies
  • More
FPGA
Blog XXICC (21st Century Co-design) release 0.0r
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join FPGA to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: johnbeetem
  • Date Created: 24 Aug 2017 9:29 PM Date Created
  • Views 3266 views
  • Likes 3 likes
  • Comments 10 comments
  • galaxc
  • icestorm
  • fpga
  • flavia
  • xxicc
Related
Recommended

XXICC (21st Century Co-design) release 0.0r

johnbeetem
johnbeetem
24 Aug 2017

Here is the new release 0.0r of XXICC.  I've been horrifically busy with work and family obligations over the last two years so I wasn't able to keep up with XXICC.  Also, 0.0r is a major release since it adds integer nets and operators to GCHD, and can now program Lattice iCE40 FPGAs using the open-source IceStorm tools.  So there was lots of testing and documentation updates.

 

XXICC (21st Century Co-design) is a not-for-profit research project which attempts to bring digital hardware/software co-design into the 21st Century using an improved programming language and a Reduced Software Complexity philosophy.  Its goal is to make it easier and more enjoyable to write and maintain digital hardware and software. XXICC is pronounced "Chicken Coop", so-called because it has so many layers.

 

For an overview of XXICC, see XXICC: 21st Century Co-design.  For details on the GalaxC programming language, XXICC Object Editor, and GalaxC extensions for Hardware Design (GCHD), here are the latest documents and source code:

 

Release notes for XXICC rev 0.0r

Programming in the GalaxC Language rev 0.0r: reference and user guide for the GalaxC programming language.

The XXICC Anthology rev 0.0r : collection of miscellaneous XXICC topics, including user guides for the XXICC Object Editor, GCHD, Flavia, and IceStorm.

XXICC code release 0.0r : source code for XXICC.

XXICC source code listing rev 0.0r: source code listing as PDF.

XXICC executable binary for Windows rev 0.0r : XXICC executable binary for Microsoft Windows.

GalaxC sample/demo programs rev 0.0r: sample GalaxC programs and GCHD logic libraries.

GalaxC sample/demo program listings rev 0.0r: PDF listing of the sample GalaxC programs and GCHD examples.

Installing and Running XXICC rev 0.0q: Document describing how to install and run XXICC, unchanged for 0.0r.

Compiling and Running GalaxC Programs rev 0.0k: Document describing how to compile and run your own GalaxC programs, unchanged for 0.0r.

Editable XXICC documentation files rev 0.0r: editable XOE files for XXICC documentation.

GCHD examples for IceStorm rev 0.0r: these are for generating Lattice iCE40 FPGAs using IceStorm, using either a Lattice iCEstick or Nandland Go Board as the target.

Data files for FlaviaP40 release 0.0r for Papilio One 250K: Data files for the FlaviaP40 implementation of the Free Logic Array.

Data files for FlaviaP60 release 0.0r for Papilio One 500K: Data files for the FlaviaP60 implementation of the Free Logic Array.

Data files for FlaviaPD59 release 0.0r: Data files for the FlaviaPD59 implementation of the Free Logic Array for Papilio DUO.

Data files for FlaviaLP60 release 0.0r for LOGI-Pi: Data files for the FlaviaLP60 implementation of the Free Logic Array for the ValentF(x) LOGI-Pi.

Data files for FlaviaLB60 release 0.0r for LOGI-Bone: Data files for the FlaviaLB60 implementation of the Free Logic Array for the ValentF(x) LOGI-Bone.

Taming the Wild Bitstream (unchanged for 0.0r): Supplement to Flavia: the Free Logic Array.

 

I've tested XXICC 0.0r on GNU/Linux (Ubuntu on x86 PCs and ODROID-C1 Ubuntu).  I haven't tested it yet on Raspberry Pi Raspbian or BeagleBone Debian.  I tested it on Windows 2000 and 7.  My main machine is Ubuntu, so the others are more likely to have anomalies.  Constructive comments and suggestions are most welcome.  I'd especially like to find out how to reproduce some of the bugs that have been eluding me.

 

The previous version of XXICC is: XXICC (21st Century Co-design) release 0.0q

The earliest versions of XXICC are at Google Code: https://code.google.com/archive/p/xxicc/

 

XXICC is a FLOSS (Free as in Liberty Open Source Software) project.  Software is licensed under GPLv3 and other content is licensed under Creative Commons CC-BY-SA 3.0.

  • Sign in to reply

Top Comments

  • michaelkellett
    michaelkellett over 8 years ago in reply to johnbeetem +2
    I suspect that the main issues are the real one of support (the FPGA vendor will inevitably end up having to deal with issues with third party tools and lose the ability to tweak the tool set any time…
  • Former Member
    Former Member over 8 years ago +1
    Its definitely a good idea to produce a language/compiler which feels more comfortable to work with. My recent escapades in Verilog proves so, as a basic example I was using multiple [always @] blocks…
  • Former Member
    Former Member over 8 years ago in reply to johnbeetem +1
    The way I've understood the = and the <= thing is that using = means it takes more time before it moves on to the next statement(i.e. waits for the original statement to complete before moving on ie. its…
Parents
  • Former Member
    Former Member over 8 years ago

    Its definitely a good idea to produce a language/compiler which feels more comfortable to work with. My recent escapades in Verilog proves so, as a basic example I was using multiple [always @] blocks to perform seperate tasks but later found out that wire/reg types could only be modified in 1[always @]block. This led me to re-writing the entire thing to work around the compilers constraints.

     

    Its only a small issue and I've learnt for the future but a more intelligent compiler would be able to compile my original by automatically combining what I'd written into a single block itself.

     

    Its clear that your software here is going way above and beyond that but it does seem there's a lot of improvements that could and should be made merely as a matter of language/compiler evolution.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • johnbeetem
    johnbeetem over 8 years ago in reply to Former Member

    lucie tozer wrote:

     

    Its definitely a good idea to produce a language/compiler which feels more comfortable to work with.

    Thank you for your comment.  Verilog definitely has some quirks that makes it difficult for the new user.  I've been designing professionally in Verilog for over 10 years and I'm still foggy on the difference between the "=" and "<=" assignments in "always" blocks.  I've worked out my own Verilog subset that synthesizes cleanly, but it's still gnarly.  My approach to Verilog is that I make a mental picture of the hardware I want and then I write the Verilog patterns that fool the synthesizer into doing the right thing... most of the time.  An awkward way to code, but it works and isn't uncommon.

     

    My soapbox speech for the last ten years is that if FPGA vendors had opened up their bitstreams 25 years ago (when I told them they should do it) then FPGAs would be a mainstream technology instead of a niche.  A long form of this speech is in Taming the Wild Bitstream.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 8 years ago in reply to johnbeetem

    The way I've understood the = and the <= thing is that using = means it takes more time before it moves on to the next statement(i.e. waits for the original statement to complete before moving on ie. its a blocking statement so it blocks the flow) whereas if you use a non-blocking <= it takes less time before moving to the next statement but requires more physical logic blocks to do so(its a non-blocking statement so it uses more logic blocks to allow the following statements to be simulated concurrently). It all seems to do with timing and this to me is the only reasoning behind it (but thats coming from a newbie.. theres probably so much I haven't considered).

     

    What do you think are the primary concerns to vendors for opening up their bitstreams? surely if it helps them to sell more of their products it would be worth their while.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • johnbeetem
    johnbeetem over 8 years ago in reply to Former Member

    lucie tozer wrote:

     

    What do you think are the primary concerns to vendors for opening up their bitstreams? surely if it helps them to sell more of their products it would be worth their while.

    I'll start by repeating what I said in Taming the Wild Bitstream: "The excuse most commonly heard from FPGA vendors is that they insist their customers want the bitstream format to be secret to prevent reverse-engineering customer designs.  OK, that makes sense except for one thing: millions of uP/uC-based products are designed and sold each year using open CPU architectures, yet there is very little worry that someone is going to reverse-engineer those designs.  IMO most FPGA designers would gladly have better tools in exchange for open bitstream formats.

     

    "Most FPGAs are part of hardware/software systems, and unless the FPGA performs a trivial function, trying to understand what it does and how it interacts with the software is pretty nasty.  Indeed, it'’s hard enough to understand someone else’s FPGA even if you have commented VHDL/Verilog source code :-)  The best you can do is to make an exact copy, which you can do now with the bitstream itself.  Yet people rarely do, because you'’re much better off designing better products with better features than copying your competitor’s last-generation products and trying to modify them enough so that you’re not blatently violating copyright."

     

    I imagine that they have this discussion periodically at FPGA vendors.  I think they fear that they'll lose existing customers if they don't keep the bitstream secret.  One can argue that you could have far more customers -- eventually --- with an open bitstream but mythical future customers have a hard time competing with current real customers.  Plus, there's only a handful of people like me asking for open bitstreams and we don't buy enough chips to show up on the radar.  It's easier just to day "no".

     

    So I am super-grateful to Clifford Wolf and Mathias Lasser for creating IceStorm.  Maybe that will inspire someone to complete Spartan-6 reverse-engineering.  It will probably be someone in Europe -- if you try to do that in the USA you're likely to be sued.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelkellett
    michaelkellett over 8 years ago in reply to johnbeetem

    I suspect that the main issues are the real one of support (the FPGA vendor will inevitably end up having to deal with issues with third party tools and lose the ability to tweak the tool set any time there is a hardware issue).

    The other issue is the concern of loss of competitive advantage.

    I'm much less sure than John that there would be a huge change if third party tool sets were common - there already are third party HDL, simulator and synthesizer tools. Lattice are the best hope for opening up the last step - I think they are quite happy with the ICE situation and watching to see if anything useful comes of it - so far it hasn't (at least as far as I can tell - I haven't looked at the latest XXICC yet).

     

    I'm amused by you both having issues re. Verilog. I have access to fully paid up expensive tools for VHDL and Verilog and the only time I ever do Verilog is when I have to because I need to look at other people's code.

    The = <= issue is dealt with so much more nicely in VHDL !

    And I like the really pedantic rules - better 10 minutes spent getting it to compile than the 10 days finding the bug.

     

    Like the man said YMMV

     

    MK

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • johnbeetem
    johnbeetem over 8 years ago in reply to Former Member

    There's a nice concise description of the difference between blocking (=) and non-blocking (<=) assignment at Nandland.com: https://www.nandland.com/articles/blocking-nonblocking-verilog.html

     

    Basically, in an "always" block the blocking assignment (=) gives you combinational logic while the non-blocking assignment (<=) gives you sequential (clocked) logic.  It's awful nomenclature IMO.  Why not call them "combinational assignment" and "clocked assignment"?

     

    When I write Verilog, I use "always" blocks exclusively for clocked logic and all the assignments in them use '<='.  I put all my combinational logic in "assign y = expr" statements or as part of a "wire" declaration: "wire x = expr".

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • johnbeetem
    johnbeetem over 8 years ago in reply to Former Member

    There's a nice concise description of the difference between blocking (=) and non-blocking (<=) assignment at Nandland.com: https://www.nandland.com/articles/blocking-nonblocking-verilog.html

     

    Basically, in an "always" block the blocking assignment (=) gives you combinational logic while the non-blocking assignment (<=) gives you sequential (clocked) logic.  It's awful nomenclature IMO.  Why not call them "combinational assignment" and "clocked assignment"?

     

    When I write Verilog, I use "always" blocks exclusively for clocked logic and all the assignments in them use '<='.  I put all my combinational logic in "assign y = expr" statements or as part of a "wire" declaration: "wire x = expr".

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube