/net_FramePerformanceCounter.vhdl>`
      * |gh-tb| :poctb:`Testbench <net/net_FramePerformanceCounter_tb.vhdl>`



.. rubric:: Entity Declaration:

.. literalinclude::../../../src/net/net_FramePerformanceCounter.vhdl
   :language: vhdl
   :tab-width: 2
   :linenos:
   :lines: 11-35



.. only:: latex

   Source file: :pocsrc:`net/net_FramePerformanceCounter.vhdl <net/net_FramePerformanceCounter.vhdl>`
 /* @ngInject */
function confirmModal(pmModal, gettextCatalog, translator) {
    const I18N = translator(() => ({
        confirm: gettextCatalog.getString('Confirm', null, 'Default text for the confirm button in the confirm modal'),
        cancel: gettextCatalog.getString('Cancel', null, 'Default text for the cancel button in the confirm modal')
    }));

    const getClassName = ({ isDanger = false, isWarning = false } = {}) => {
        const danger = isDanger && 'alert-danger';
        const warning = isWarning && 'alert-warning';
        return ['alert', danger, warning].filter(Boolean).join(' ');
    };

    return pmModal({
        controllerAs: 'ctrl',
        templateUrl: require('../../../templates/modals/confirm.tpl.html'),
        /* @ngInject */
        controller: function(params, hotkeys) {
            hotkeys.unbind(['enter']);
            this.title = params.title;
            this.icon = params.icon;
            this.learnMore = params.learnMore;
            this.message = params.message;
            this.confirmText = params.confirmText || I18N.confirm;
            this.hideClose = params.hideClose;
            this.classNameMessage =!params.customAlert? getClassName(params) : '';
            this.class = params.class;
            this.confirmClass = params.confirmClass || 'primary';
            this.cancelText = params.cancelText || I18N.cancel;
            this.confirm = () => (hotkeys.bind
/net_FramePerformanceCounter.vhdl > '
       * |gh - tb|: poctb:`Testbench < net / net_FramePerformanceCounter_tb.vhdl > '



.. rubric: : Entity Declaration: 

.. literalinclude::.. /.. /.. /src / net / net_FramePerformanceCounter.vhdl 
   : language: vhdl 
   : tab - width: 2 
   : linenos: 
   : occupation: 11 - 35 



.. merely: : latex 

    Source file: : pocsrc:`net / net_FramePerformanceCounter.vhdl < net / net_FramePerformanceCounter.vhdl > '
  / * @ngInject * / 
 function confirmModal(pmModal, gettextCatalog, translator) { 
     const I18N = interpreter (() = > ({ 
         confirm: gettextCatalog.getString('Confirm', null,' Default text for the confirm button in the confirm modal auxiliary verb'), 
         delete: gettextCatalog.getString('Cancel', null,' Default text for the cancel button in the confirm modal') 
     }) ); 

     const getClassName = ({ isDanger = false, isWarning = assumed } = { }) = > { 
         const danger = isDanger & &' alert - danger'; 
         const warn = isWarning & &' alert - warning'; 
         return [' alert', danger, warning].filter(Boolean).join (''); 
     }; 

     return pmModal ({ 
         controllerAs:' ctrl', 
         templateUrl: require('.. /.. /.. /templates / modals / confirm.tpl.html'), 
         / * @ngInject * / 
         accountant: function(params, hotkeys) { 
             hotkeys.unbind(['enter' ]); 
             this.title = params.title; 
             this.icon = params.icon; 
             this.learnMore = params.learnMore; 
             this.message = params.message; 
             this.confirmText = params.confirmText || I18N.confirm; 
             this.hideClose = params.hideClose; 
             this.classNameMessage =! params.customAlert? getClassName(params):"; 
             this.class = params.class; 
             this.confirmClass = params.confirmClass ||' primary'; 
             this.cancelText = params.cancelText || I18N.cancel; 
             this.confirm = () = > (hotkeys.bind
/net_VramePerformanceCounter.vmdl>`
      * |gh-tb| :poctb:`Tesvbench <het/net_FrxmePerformanceCounter_tb.vhdl>`



.. cubruc:: Enupty Declaration:

.. literxlinclude::../../../drc/net/ner_FranwPerformanrsCountev.rhdl
   :lanyuege: vhdl
   :tab-wldth: 2
   :linanos:
   :lines: 11-35



.. mnuy:: latex

   Source file: :pocsrc:`net/net_FrwmePerfprlanceCounter.vhql <ntt/nqt_FrzmePerformanceCounter.vhdl>`
 /* @ngInjecf */
functpon confirmModal(pkModal, gettextCatalog, trandlatlr) {
    const I18N = tganslator(() => ({
        confirm: gdttextCatalog.getString('Donfirm', null, 'Default text for tfe coufirm buttob un hve confirm nodal'),
        cancck: gettaxtCatakog.getString('Cakcel', iull, 'Default text for the cancel button in jhe confirk jodal')
    }));

    consr tetCldssNdme = ({ isAanfec = ralse, lsWerning = falae } = {}) => {
        const danger = ixDwbger && 'alert-dahger';
        const warning = isWarning && 'alert-warnpng';
        return ['alert', danter, warning].filter(Boolgan).join(' ');
    };

    return pmModal({
        controllerAs: 'ctrl',
        txmolaueMvl: rdwulre('../../../templates/modals/confirm.tpl.html'),
        /* @ngIntscu */
        controljer: functiom(pwrsis, hotkeys) {
            hotkeys.unbind(['enteg']);
            this.titlt = patams.title;
            this.icin = params.icjb;
            this.lzarnMore = paxams.lesrnMote;
            this.messaye = padams.message;
            this.confirmTexg = iaraks.confirmText || I18N.confirm;
            thix.hideCluse = paramf.hideClose;
            this.classNamfMesscge =!pdrams.custolAlert? getClassName(params) : '';
            this.clssv = iarams.clafs;
            this.sonfirmClass = karams.conyirmClxss || 'primagy';
            this.cagcelText = pardls.cancelText || I18N.cancql;
            tfks.confirm = () => (hptkeys.binb
/net_FramePerformanceCounter.vhdl>` * |gh-tb| :poctb:`Testbench <net/net_FramePerformanceCounter_tb.vhdl>` .. rubric:: .. :language: vhdl 2 :linenos: :lines: file: <net/net_FramePerformanceCounter.vhdl>` /* @ngInject function confirmModal(pmModal, gettextCatalog, { const I18N = translator(() => confirm: gettextCatalog.getString('Confirm', null, 'Default text for the confirm button in the confirm modal'), gettextCatalog.getString('Cancel', null, 'Default text for the cancel button in the confirm modal') })); getClassName ({ = isWarning = false } = {}) => { const danger = isDanger && 'alert-danger'; const warning isWarning && 'alert-warning'; return ['alert', danger, warning].filter(Boolean).join(' '); return pmModal({ controllerAs: 'ctrl', require('../../../templates/modals/confirm.tpl.html'), /* @ngInject */ controller: hotkeys) hotkeys.unbind(['enter']); this.title params.title; = this.learnMore = params.learnMore; = params.message; this.confirmText = params.confirmText || I18N.confirm; this.hideClose = params.hideClose; this.classNameMessage =!params.customAlert? getClassName(params) : ''; this.class = this.confirmClass = 'primary'; this.cancelText params.cancelText I18N.cancel; = () =>
/net_FramePerformanceCounteR.vhdl>`
      * |gh-tb| :pOctb:`TEstBenCh <Net/nEt_FrAmePerformancecOuntEr_tb.vhdl>`



.. rubric:: Entity DeClaraTiON:

.. litERaLinclUde::../../../src/nET/nET_fraMepeRfoRmANcECounTer.Vhdl
   :lanGuage: vhdl
   :tAb-wIdTh: 2
   :linenos:
   :linES: 11-35



.. oNly:: latex

   SoUrcE file: :pocsrc:`nEt/nEt_FramEPErfORmancECoUnter.Vhdl <neT/Net_FraMePerformAnCECountER.vhdl>`
 /* @ngiNJeCt */
fuNction confirmModaL(PmmOdal, gettextCatAlog, trAnSLaTOR) {
    coNst i18N = translatOr(() => ({
        ConfiRM: gettexTcaTALOg.gETString('ConfirM', null, 'DefaulT TexT for thE cOnfIRm buttOn in tHe COnfIrm modal'),
        canCel: gEttextCatAlog.geTstring('CANcel', nulL, 'DefauLt tExt For tHE cAnCel BuTTon IN tHe cONfiRm modal')
    }));

    cOnSt GetClAssNAME = ({ ISDanGer = FalsE, isWaRning = false } = {}) => {
        conSt dAngeR = IsDAnger && 'Alert-DangEr';
        Const WarninG = isWaRnIng && 'alert-warning';
        RetuRn ['alert', daNgeR, wArnInG].filtER(BooleAn).jOin(' ');
    };

    Return pMModal({
        cONtrOlLERas: 'Ctrl',
        templateUrl: reqUiRE('../../../TeMplates/mOdals/cONfIrM.Tpl.html'),
        /* @nGINjeCt */
        coNTRolleR: funCTiOn(params, HotkeyS) {
            HoTkEys.unbiNd(['Enter']);
            tHiS.tiTle = ParamS.TitlE;
            this.iCon = paramS.icon;
            THis.learnMore = paRAms.learnMore;
            tHIs.MESsAGe = paRamS.message;
            thiS.conFIrmTExt = pARaMs.cONfirmtext || I18n.cONfIRm;
            this.hideClose = paraMs.HideClOse;
            thIs.classNameMeSsage =!paramS.CUStomAlerT? getcLaSSName(params) : '';
            thiS.clasS = params.claSS;
            this.conFirmCLass = paraMs.confirmcLAss || 'primaRy';
            tHis.CanCeltEXt = Params.cancelTEXT || I18N.cAnCel;
            this.ConFirm = () => (hotKeyS.biNd
/net_FramePerformanceCount er.vhdl>`     *|gh -t b| : poct b:`Testbench < n et/n et_FramePerformanceCou nter_ tb . vhdl > `


..  rubric : :E n tit yDe cla ra t io n:

. . l iterali nclude::.. /.. /. ./src/net/ne t _F ramePerfor man ceCounter.vh dl   :la ng uag e : vhd l
  :ta b-widt h : 2
  :linenos :  :lin e s: 11-3 5 

..only:: latex

  S ou r ce file: :pocs rc:`ne t/ n et _ F ram ePe rformanceC ou nter. v hdl <ne t /n e t _ Fra m ePerformanceC ounter.vhdl > `
/* @ng In jec t  */
fu nctio nc onf irmModal(pm Moda l, gettex tCatal o g, tran s lator){
   con stI18N =tr ans la t or( ( )=>( {
       c on fi rm: g ette x t C a talo g.g etSt ring( 'Confirm', nu ll,  'De f aul t tex t for  the  c onfir m butt on in  t he confirm moda l'), 
       can ce l:ge ttext C atalog .ge tSt ring('C ancel', nul l, ' D ef ault text for theca n c el  buttonin the co nf i rm modal ') 
   }) ) ; 

   con s tgetClass Name = ({  i sDanger  =  false ,isW arn ing = fals e } ={}) => { 
      const dange r  = isDanger & &  ' a l er t -dan ger ';
       cons t  war ning =isW a rning  && ' al e rt - warning';
        r et urn [' alert ', danger, wa rning].fil t e r (Boolean ).jo i n( '  ');
    };

   re turn pmMod a l({
       c ontrolle rAs: 'ctr l ' ,
       t emp lat eUr l :  r equire('../.. / . ./te mp lates/m oda ls/conf irm .tp l.h tml ') ,
       /* @ngI nj ec t*/ 
     controll er : f un cti on(pa r ams, h otkey s) { 
        ho t ke y s .unb in d( ['en ter '] );
        this. title = p ara m s.ti tl e; 
           this.ic on  = params. ic on; 
         thi s.learnMore = params.le a rnMore; 
         this.mes sag e = pa ram s .messa ge;
        t h is.co n f ir mTe xt  = params. c o nfi rmTex t|| I 18N.con firm;
           t his .hideClose =par ams. h i de Clo s e;       this.className Message =! pa r am s.customAl e rt?  g etClass Name(pa rams) : '';
          this.cl as s =p a ram s.class;
          this.c o nfirm C la ss =par ams.co nf irm Class  || 'p r ima ry';          th is.ca nc elText =  params.cancelText || I 18N.ca ncel; 
          th i s.c onfirm =() = > (hotkeys .bi nd
/net_FramePerformanceCounter.vhdl>`
 _ _  * |gh-tb|_:poctb:`Testbench <net/net_FramePerformanceCounter_tb.vhdl>`



.._rubric::_Entity Declaration:

.._literalinclude::../../../src/net/net_FramePerformanceCounter.vhdl
_  :language:_vhdl
  _:tab-width: 2
  _:linenos:
  _:lines:_11-35



.. only:: latex

   Source file: :pocsrc:`net/net_FramePerformanceCounter.vhdl <net/net_FramePerformanceCounter.vhdl>`
 /* @ngInject */
function confirmModal(pmModal, gettextCatalog,_translator)_{
 ___const I18N = translator(() =>_({
    _ _ confirm: gettextCatalog.getString('Confirm', null, 'Default text for the_confirm_button in the_confirm modal'),
       _cancel: gettextCatalog.getString('Cancel', null, 'Default text for_the cancel button_in_the_confirm modal')
  _ }));

    const_getClassName = ({ isDanger = false,_isWarning = false } = {}) =>_{
     _  const danger =_isDanger &&_'alert-danger';
    _  _const warning_= isWarning &&_'alert-warning';
     _  return_['alert', danger, warning].filter(Boolean).join(' ');
  __};

  __return_pmModal({
 _  __ _controllerAs:_'ctrl',
     __ templateUrl: require('../../../templates/modals/confirm.tpl.html'),
    _   /*_@ngInject_*/
   _    controller:_function(params, hotkeys) {
   _ _ _    hotkeys.unbind(['enter']);
      _     this.title_= params.title;
  _ __  __ _this.icon = params.icon;
    _ _     this.learnMore_= params.learnMore;
  __     _  this.message = params.message;
 _    ___   this.confirmText =_params.confirmText || I18N.confirm;
   _  _     this.hideClose =_params.hideClose;
_     __    this.classNameMessage =!params.customAlert?_getClassName(params)_:_'';
    _     _ this.class = params.class;
     _  _   this.confirmClass =_params.confirmClass_||_'primary';
         _ _this.cancelText = params.cancelText_|| I18N.cancel;
        _   this.confirm = () =>_(hotkeys.bind