Transpiling RTL Pseudo-code of the POWER Instruction Set Architecture to
C for Real-time Performance Analysis on Cavatools Simulator
- URL: http://arxiv.org/abs/2306.08701v1
- Date: Wed, 14 Jun 2023 18:53:14 GMT
- Title: Transpiling RTL Pseudo-code of the POWER Instruction Set Architecture to
C for Real-time Performance Analysis on Cavatools Simulator
- Authors: Kinar S, Prashanth K V, Adithya Hegde, Aditya Subrahmanya Bhat,
Narender M
- Abstract summary: This paper presents a transpiler framework for converting RTL pseudo code of the POWER Instruction Set Architecture (ISA) to C code.
The transpiler ensures compatibility with the Cavatools simulator by generating C code that adheres to its requirements.
The proposed framework facilitates the seamless integration of RTL pseudo code into the Cavatools ecosystem, enabling comprehensive performance analysis and optimization of Power ISA-based code.
- Score: 0.0
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: This paper presents a transpiler framework for converting RTL pseudo code of
the POWER Instruction Set Architecture (ISA) to C code, enabling its execution
on the Cavatools simulator. The transpiler consists of a lexer and parser,
which parse the RTL pseudo code and generate corresponding C code
representations. The lexer tokenizes the input code, while the parser applies
grammar rules to build an abstract syntax tree (AST). The transpiler ensures
compatibility with the Cavatools simulator by generating C code that adheres to
its requirements. The resulting C code can be executed on the Cavatools
simulator, allowing developers to analyze the instruction-level performance of
the Power ISA in real time. The proposed framework facilitates the seamless
integration of RTL pseudo code into the Cavatools ecosystem, enabling
comprehensive performance analysis and optimization of Power ISA-based code.
Related papers
- VecTrans: LLM Transformation Framework for Better Auto-vectorization on High-performance CPU [17.263612093919885]
VecTrans is a framework that leverages large language models to enhance compiler-based code vectorization.
VecTrans successfully vectorizes 23 cases (46%) and achieves an average speedup of 2.02x.
arXiv Detail & Related papers (2025-03-25T08:39:35Z) - Design and architecture of the IBM Quantum Engine Compiler [0.0]
We describe the design and architecture of the open-source Quantum Engine (qe-compiler) currently used in production for IBM Quantum systems.
qe-compiler is built using LLVM's Multi-Level Intermediate Representation framework.
qe-compiler is built to be scalable, maintainable, performant, and scalable to support the future of quantum computing.
arXiv Detail & Related papers (2024-08-12T19:54:43Z) - A Novel HDL Code Generator for Effectively Testing FPGA Logic Synthesis Compilers [3.5768623563189776]
Defects in logic synthesis compilers may lead to unexpected behaviors in target applications, posing security risks.
LegoHDL is a novel method to generate syntax valid HDL code for comprehensively testing FPGA synthesis logic compilers.
LegoHDL has reported 20 new defects--many of which are deep and important; 16 of them have been confirmed.
arXiv Detail & Related papers (2024-07-01T06:41:05Z) - StepCoder: Improve Code Generation with Reinforcement Learning from
Compiler Feedback [58.20547418182074]
We introduce StepCoder, a novel framework for code generation, consisting of two main components.
CCCS addresses the exploration challenge by breaking the long sequences code generation task into a Curriculum of Code Completion Subtasks.
FGO only optimize the model by masking the unexecuted code segments to provide Fine-Grained Optimization.
Our method improves the ability to explore the output space and outperforms state-of-the-art approaches in corresponding benchmarks.
arXiv Detail & Related papers (2024-02-02T13:14:31Z) - SparseCoder: Identifier-Aware Sparse Transformer for File-Level Code
Summarization [51.67317895094664]
This paper studies file-level code summarization, which can assist programmers in understanding and maintaining large source code projects.
We propose SparseCoder, an identifier-aware sparse transformer for effectively handling long code sequences.
arXiv Detail & Related papers (2024-01-26T09:23:27Z) - Chain of Code: Reasoning with a Language Model-Augmented Code Emulator [115.16975276693267]
We propose Chain of Code, a simple yet surprisingly effective extension that improves LM code-driven reasoning.
The key idea is to encourage LMs to format semantic sub-tasks in a program as flexible pseudocode that the interpreter can explicitly catch.
arXiv Detail & Related papers (2023-12-07T17:51:43Z) - LILO: Learning Interpretable Libraries by Compressing and Documenting Code [71.55208585024198]
We introduce LILO, a neurosymbolic framework that iteratively synthesizes, compresses, and documents code.
LILO combines LLM-guided program synthesis with recent algorithmic advances in automated from Stitch.
We find that AutoDoc boosts performance by helping LILO's synthesizer to interpret and deploy learned abstractions.
arXiv Detail & Related papers (2023-10-30T17:55:02Z) - CP-BCS: Binary Code Summarization Guided by Control Flow Graph and
Pseudo Code [79.87518649544405]
We present a control flow graph and pseudo code guided binary code summarization framework called CP-BCS.
CP-BCS utilizes a bidirectional instruction-level control flow graph and pseudo code that incorporates expert knowledge to learn the comprehensive binary function execution behavior and logic semantics.
arXiv Detail & Related papers (2023-10-24T14:20:39Z) - VerilogEval: Evaluating Large Language Models for Verilog Code
Generation [6.88526119890374]
We present a comprehensive evaluation dataset consisting of 156 problems from the Verilog instructional website HDLBits.
The evaluation set consists of a diverse set of Verilog code generation tasks, ranging from simple combinational circuits to complex finite state machines.
arXiv Detail & Related papers (2023-09-14T09:15:34Z) - Neuro-symbolic Zero-Shot Code Cloning with Cross-Language Intermediate
Representation [13.881954273779403]
We define a neuro-symbolic approach to address the task of finding semantically similar clones for the codes of the legacy programming language, without training data.
We fine-tune UnixCoder, the best-performing model for cross-programming language search, for the Code Cloning task with the SBT IRs of C code-pairs, available in the CodeNet dataset.
With this fine-tuned UnixCoder, we get a performance improvement of 12.85 MAP@2 over the pre-trained UniXCoder model, in a zero-shot setting, on the test split synthesized from the CodeNet
arXiv Detail & Related papers (2023-04-26T07:41:26Z) - Improving Code Summarization with Block-wise Abstract Syntax Tree
Splitting [15.28941592388958]
Abstract Syntax Tree (AST), which depicts the source code's syntactic structure, has been incorporated to guide the generation of code summaries.
Existing AST based methods suffer from the difficulty of training and generate inadequate code summaries.
We present the Block-wise Abstract Syntax Tree Splitting method (BASTS), which fully utilizes the rich tree-form syntax structure in ASTs.
arXiv Detail & Related papers (2021-03-14T05:04:06Z) - Extending C++ for Heterogeneous Quantum-Classical Computing [56.782064931823015]
qcor is a language extension to C++ and compiler implementation that enables heterogeneous quantum-classical programming, compilation, and execution in a single-source context.
Our work provides a first-of-its-kind C++ compiler enabling high-level quantum kernel (function) expression in a quantum-language manner.
arXiv Detail & Related papers (2020-10-08T12:49:07Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.