function tclcmd = paritycmds(timeres)
% PARITYCMDS - Creates Tcl commands for Parity Checker Model
%   The returned cell array can be passed as parameters ('tclcmd') to
%   VSIMULINK.  This will lauching ModelSim and build the Verilog
%   source files included with the demo.  Also, the model will
%   be loaded for cosimulation with PARITY_CHECK model
%
% Examples of timeres include '1ns', '1ps'.
%
% See also: VSIM

%   Copyright 2009-2020 The MathWorks, Inc.

tclcmd = { 'vlib work',... %create library (if necessary)
           'vlog paritychecker.v',...         
          ['vsimulink  work.paritychecker -t ' timeres], ... % set resolution to ts
           'add wave /paritychecker/*', ...
           'echo Setting the HDL Simulator resolution to: $resolution' ...
         };
