# SIMPLER-MAGIC **Repository Path**: panjiaxiang7/simpler-magic ## Basic Information - **Project Name**: SIMPLER-MAGIC - **Description**: SIMPLER-MAGIC - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-06 - **Last Updated**: 2025-10-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SIMPLER-MAGIC SIMPLER MAGIC: Synthesis and In-memory MaPping of Logic Execution in a single Row for Memristor Aided loGIC ## Dependencies In order to use SIMPLER-MAGIC, you will need a Linux machine with: 1. Python 3.6 2. [ABC Synthesis Tool](https://bitbucket.org/alanmi/abc) ## Manual 1. Configure: in the file simple_conf.cfg you will find the following content: ```ini [input_output] ; input_format - the allowed values: verilog, blif input_format=verilog [abc] ; abc_dir_path - write the path to your ABC directory abc_dir_path=/home/adi/abc/alanmi-abc-eac02745facf [SIMPLER_Mapping] ; Max_num_gates - write the maximum number of gates the tool allows Max_num_gates=20000 ; ROW_SIZE - write all the desired row sizes (including the cells storing the inputs) ROW_SIZE=[5,8,10,15] ; generate_json,print_mapping,print_warnings - the allowed values: True/False generate_json=False print_mapping=True print_warnings=True ``` Change the parameters according to your needs. 2. Run: ```sh python3 simpler_main.py benchmark.blif row_size ``` Modified By panjiaxiang7: RUN: python3 simpler_main.py benchmark.blif row_size JSON文件生成在result目录下,针对论文中的5个benchmark产生了对应的micro operations,以及和magic相同的格式,用于验证算法的测试; run.sh all_run.sh 找到当前算法完成benchmark mapping的最小rowsize