Skip to content
Snippets Groups Projects
Select Git revision
  • 99e5a76e6327911a6d03e83ccc736fb785cbc1d6
  • master default protected
  • compilation2022apr
  • ISEI_3_5_1
  • VERSION_3_9-alba
  • VERSION_3_9-Indus2
  • Jianfeng
  • VERSION-3_10
  • VERSION-3_9_1
  • VERSION-3_9_alba
  • VERSION-3_9_Indus2
  • VERSION-3_9
  • VERSION-3_8
  • VERSION-3_7
  • ISEI_3_5_1-PATCH_2
  • ISEI_3_5_1-PATCH_1
  • PROD_3_5_1
  • VERSION_3_6prerelease2
  • VERSION_3_6prerelease
  • VERSION-3_5
  • tracy
21 results

example_dip.fe

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    pscgen.rdl 1.39 KiB
    `include "pscgen.vh" //automatically created and added by fwk with conf variables such a C_VERSION ...
    
    /* default values of defined variables */
    `ifndef C_ID
    `define C_ID 0x507E1712
    `endif
    `ifndef C_VERSION
    `define C_VERSION 0x00000000
    `endif
    
    addrmap pscgen {
      name = "Signal generator for power supplies controller.";
      desyrdl_interface = "AXI4L";
    
      reg {
        desc="Module Identification Number";
        default sw = r;
        default hw = r;
        field {} data[32] = `C_ID;
      } ID @0x00;
    
      reg {
        desc="Module Version Number";
        default sw = r;
        default hw = r;
        field {} data [32];
      } VERSION @0x04;
    
      reg {
        desc = "Control register";
        default sw = rw;
        default hw = r;
        field {} enable;
      } CONTROL ;
    
      reg {
        desc = "Ticker rate register";
        default sw = rw;
        default hw = r;
        field {} data[32];
      } TICKER_RATE ;
    
      reg {
        desc = "Table scan depth register";
        default sw = rw;
        default hw = r;
        field {} data[`C_W_TIDX];
      } TABLE_DEPTH ;
    
      external mem {
        desc = "Phase increment table";
        memwidth = `C_W_PHASE;
        mementries = 2**`C_W_TIDX;
      } TABLE_PHASE_INCR;
    
    
      external mem {
        desc = "Phase offset and reset table";
        memwidth = `C_W_PHASE+1;
        mementries = 2**`C_W_TIDX;
      } TABLE_PHASE_OFFS;
    
      external mem {
        desc = "Signal scale and offset table";
        memwidth = `C_W_SCALE+`C_W_OFFSET;
        mementries = 2**`C_W_TIDX;
      } TABLE_SCALE;
    
    };