173 views

Uploaded by gurudyal

- VBA Notes
- Excel VBA Fortran Para IQ
- White Box Testing Technique
- fUPKBAFUF.txt
- 3
- Scripting with Maximo [v3].pdf
- Unit-6
- CS Notes
- Solar Panels Energy and Area Under Curve Teacher Guide 2
- Diagramas Electricos Espesador 21962A
- Chapter 13
- BTU to Watts (W) Conversion Calculator
- barang
- Pico Hydro Power
- Sig Proc
- Case Statements
- PrimeFaces - Users Guide 3_0_RC2
- Chapter 5 | Dr. Hala | Programming 2
- Computer Science-Lecture 11-Intro Object Oriented Programming
- Primefaces Users Guide 3.0

You are on page 1of 5

Operators

• Identifiers

– Basic identifiers: start with a letter, do not end with “_”

– Case insensitive

• Data Objects

– Signals

– Constants

– Variables

– Files

(2)

1

VHDL Standard Data Types

integer implementation defined signal index: integer:= 0;

real implementation defined variable val: real:= 1.0;

boolean (TRUE, FALSE) variable test: boolean:=TRUE;

character defined in package STANDARD variable term: character:= ‘@’;

bit_vector array with each element of type variable PC: bit_vector(31 downto

bit 0)

time implementation defined variable delay: time:= 25 ns;

string array with each element of type variable name : string(1 to 10) :=

character “model name”;

natural 0 to the maximum integer value variable index: natural:= 0;

in the implementation

positive 1 to the maximum integer value variable index: positive:= 1;

in the implementation

(3)

models of computing systems

– Examples

type instr_opcode is (‘add’, ‘sub’, ‘xor’, ‘nor’, ‘beq’, ‘lw’, ‘sw’);

type state is (‘empty’, ‘half_full’, ‘half_empty’, ‘empty’);

• Array types

type word is array (31 downto 0) of std_logic;

type memory is array (0 to 4095) of word;

(4)

2

Physical Types

units

fs; -- femtoseconds

ps = 1000 fs; -- picoseconds

ns = 1000 ps; -- nanoseconds

us = 1000 ns; -- microseconds

ms = 1000 us; -- milliseconds

s = 1000 ms; -- seconds

min = 60 s; -- minutes

hr = 60 min; -- hours

end units;

In terms of base units

type poweris range 1 to 1000000

units

uw; -- base unit is microwatts

mw = 1000 uw; -- milliwatts

w = 1000 mw; -- watts

kw = 1000000 mw -- kilowatts

mw = 1000 kw; -- megawatts

end units;

(5)

entity inv_rc is

generic (c_load: real:= 0.066E-12); -- farads

port (i1 : in std_logic;

o1: out: std_logic);

constant rpu: real:= 25000.0; --ohms

constant rpd: real :=15000.0; -- ohms

end inv_rc;

explicit type casting and range management

constant tplh: time := integer (rpu*c_load*1.0E15)*3 fs;

constant tpll: time := integer (rpu*c_load*1.0E15)*3 fs;

begin

o1 <= ‘1’ after tplh when i1 = ‘0’ else

‘0’ after tpll when i1- = ‘1’ or i1 = ‘Z’ else

‘X’ after tplh;

end delay;

Example adapted from “VHDL: Analysis and Modeling of Digital Systems,” Z. Navabi, McGraw Hill, 1998.

(6)

3

Physical Types: Example (cont.)

1E16 units

units l_o; -- milli-ohms

ffr; -- femtofarads ohms = 1000 l_o;

pfr = 1000 ffr; k_o= 1000 ohms;

nfr = 1000 pfr; m_o = 1000 k_o;

ufr = 1000 nfr g_o = 1000 m_o;

mfr = 1000 ufr end units;

far = 1000 mfr;

kfr = 1000 far;

end units;

create new physical types

Example adapted from “VHDL: Analysis and Modeling of Digital Systems,” Z. Navabi, McGraw Hill, 1998.

(7)

entity inv_rc is

generic (c_load: capacitance := 66 ffr); -- farads

port (i1 : in std_logic;

o1: out: std_logic);

constant rpu: resistance:= 25000 ohms;

constant rpd : resistance := 15000 ohms;

end inv_rc;

Define a new overloaded multiplication operator

architecture delay of inv_rc is

This expression now becomes

constant tplh: time := (rpu/ 1 l_o)* (c_load/1 ffr) *3 fs/1000;

constant tpll: time := (rpu/ 1 l_o)* (c_load/1 ffr) *3 fs/1000;

begin

o1 <= ‘1’ after tplh when i1 = ‘0’ else

‘0’ after tpll when i1 = ‘1’ or i1 = ‘Z’ else rpu * c_load * 3

‘X’ after tplh;

end delay;

Example adapted from “VHDL: Analysis and Modeling of Digital Systems,” Z. Navabi, McGraw Hill, 1998.

(8)

4

Modeling with Physical Types

conversions functions and arithmetic functions for new types

• Examples

– Modeling power

– Modeling silicon area

– Modeling physical resources that are “cumulative”

(9)

Operators

d r

relational operators = /= < <= > >=

shift operators sll srl sla sra rol ror

addition operators + – &

unary operators + –

multiplying operators * / mod rem

miscellaneous operators ** abs not &

used operators and types

(10)

- VBA NotesUploaded byPallab Datta
- Excel VBA Fortran Para IQUploaded byLuis Mendoza
- White Box Testing TechniqueUploaded byFachmi An Ananda
- fUPKBAFUF.txtUploaded byMaissa Hassan
- 3Uploaded byotarVEVO
- Scripting with Maximo [v3].pdfUploaded byedisonto
- Unit-6Uploaded byImtiaz Hussain
- CS NotesUploaded byBlueFireOblivion
- Solar Panels Energy and Area Under Curve Teacher Guide 2Uploaded byKateeravan Amirthalingam
- Diagramas Electricos Espesador 21962AUploaded byAndres Romero
- Chapter 13Uploaded byZelaCanbery
- BTU to Watts (W) Conversion CalculatorUploaded bybudi_alamsyah
- barangUploaded byprimanet_kaliwungu
- Pico Hydro PowerUploaded bylamury
- Sig ProcUploaded byAnonymous YjQu4y
- Case StatementsUploaded byCatalina Achim
- PrimeFaces - Users Guide 3_0_RC2Uploaded byrds_rds
- Chapter 5 | Dr. Hala | Programming 2Uploaded byJonathanHindi
- Computer Science-Lecture 11-Intro Object Oriented ProgrammingUploaded byAshley Anderson
- Primefaces Users Guide 3.0Uploaded byDiogo Lages Trindade
- SAP Internal Table AbapUploaded byVikrant077
- Fujitsu-General ASYG07-12 LLC 2014Uploaded byEuro-klima Bitola
- Api JavaUploaded byrichan
- DJ_CPP_01.pptxUploaded byRishav Chaudhuri
- Com 31Uploaded bycedassss
- Computer ProgrammingUploaded byAjay Dubey
- UntitledUploaded byGenability
- Java TutorialUploaded byShiva Kumara
- My Selection CourseUploaded bytns_empire
- 1Uploaded bySourav Kumar

- Micro Controller 8051- NewUploaded bygurudyal
- VHDL Chapter8Uploaded bygurudyal
- VHDLhUploaded bygurudyal
- ResultSearch_ForCollege.aspxUploaded bygurudyal
- VHDL Chapter6Uploaded bygurudyal
- dk1170ch2Uploaded bygurudyal
- VHDL Chapter7Uploaded bygurudyal
- Design of Rotating Electrical Machines - MalestromUploaded bygurudyal
- VHDL Chapter1Uploaded bygurudyal
- Chap-7 Memory and Programmable Logic 4th Ed. ManoUploaded bygurudyal
- 038ElPow_syl_fall02Uploaded bygurudyal
- VHDL Chapter3Uploaded bygurudyal
- VHDL Chapter5Uploaded bygurudyal
- VHDL Chapter2Uploaded bygurudyal
- VHDL Chapter4Uploaded bygurudyal

- using System algor.fulbito.docUploaded byCristhian Hurtado Pachas
- 08-NOM.pdfUploaded byIrene Clarisa
- Data TypesUploaded byFaiz Ullah Faizi
- r05410201 - Neural Networks & Fuzzy LogicUploaded bySRINIVASA RAO GANTA
- Hashing ExamplesUploaded byJoyce Annie
- Nlp Programming en 04 HmmUploaded bykhinwarwarhtike
- Seminar3 With Some SolutionsUploaded byAngela Cazan
- Primitive Data Types in JavaUploaded byShivakumar S Kadakal
- Recurrence RelationsUploaded byArjob Mukherjee
- Latest r1908Uploaded byjimmy004155525
- OopUploaded byPoma Panezai
- CML ContestUploaded bybellataco
- matlab linear programmingUploaded byEching Law
- Mth601 Vu NewUploaded byjamilbookcenter
- Practice 2Uploaded bySenior Alonzo
- Theory of Computation GATE Computer Science Postal Study MaterialUploaded byCrystal
- From Graphs to Keyed Quantum Hash Functions .pdfUploaded byYash
- 1501.01720v1Uploaded byDaryl Koh
- FunctionsUploaded byany
- The Transportation Problem in an Intuitionistic Fuzzy EnvironmentUploaded byP.SENTHIL KUMAR
- Multiple Choice Java Questions 2001 (© MikeUploaded byraghunathnr
- Exercise 06Uploaded byvaomaxem
- Solution Manual 3eUploaded byjaijohnk
- 29-2.CUploaded byanon_621618677
- mpl-05Uploaded byscvalencia606
- Lecture 5 (Signal-Flow-Graphs).pdfUploaded byMomenNaeem
- 214 Midterm a SolutionUploaded byabdal113
- Differential Evolution with Self-adaptation and Local Search for Constrained Multiobjective OptimizationUploaded byHamed Seyri
- DS MCQUploaded bybhagwatsachin
- Long Exam Midterm Artificial Intelligence.docUploaded byAnonymous Q9YTPRo