⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sine.vhd

📁 springer_-modeling_and_simulation_for_rf_system_design所有配套光盘源码5-11章
💻 VHD
字号:
-- ------------------------------------------------------------- -- Additional material to the book-- Modeling and Simulation for RF System Design-- ---- THIS MODEL IS LICENSED TO YOU "AS IT IS" AND WITH NO WARRANTIES, -- EXPRESSED OR IMPLIED. THE AUTHORS SPECIFICALLY DISCLAIM ALL IMPLIED -- WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.-- THEY MUST NOT HAVE ANY RESPONSIBILITY FOR ANY DAMAGES, FINANCIAL OR-- LEGAL CLAIMS WHATEVER.-- ------------------------------------------------------------- Name:      Independent Sinusoidal Voltage Source-- -- Description:-- P and N are the positive and negative terminals, respectively.-- The value of the voltage source is equal to V0+A*SIN(2*pi*FREQ*t).-- -- Literature:-- -- Dependencies: -- ------------------------------------------------------------- Logical Library         Design unit-- ------------------------------------------------------------- IEEE_proposed           ELECTRICAL_SYSTEMS-- --------------------------------------------------------------- Source:-- sine.vhd-- -----------------------------------------------------------library IEEE, IEEE_proposed;   use IEEE_proposed.ELECTRICAL_SYSTEMS.all;   use IEEE.MATH_REAL.all;       -- for access to SIN and MATH_2_PIentity SINE is    generic (V0   : REAL := 0.0;  -- offset voltage [V]              A    : REAL := 1.0;  -- amplitude [V]             FREQ : REAL := 50.0  -- frequency [Hz], MIN: 0.0            );    port (terminal P   : ELECTRICAL; -- positive terminal          terminal N   : ELECTRICAL  -- negative terminal          );end entity SINE;architecture V1 of SINE is    quantity V across I through P to N;begin    V == V0 + A*SIN(MATH_2_PI*FREQ*NOW);end architecture V1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -