삽질매니아

위치로그 태그 방명록

'전공공부'에 해당되는 글 9건

  1. 2008/12/14 JSP 개발을 위한 초고속 셋팅 따라하기
  2. 2007/07/30 내가 지금 배웠고, 앞으로 더배울 전자회로 책
  3. 2007/05/25 D-Flip Flop(플립플롭)을 Verilog로 구현한 코드
  4. 2007/05/13 4bit Adder and Subtractor(4비트 덧셈뺄셈기) Verilog HDL 코드
  5. 2007/05/09 Verilog HDL을 이용해서 4bit Full Adder(덧셈기)를 구현한 코드
  6. 2007/05/02 Excess-3 변환기(컨버터) Verilog(베릴로그) 소스
  7. 2007/04/14 전압 파형이 삼각파(Triangle-wave)일때 RMS값과 평균전압을 구하는 과정
  8. 2007/04/14 전압파형이 사인웨이브(Sine-Wave)일때 RMS와 평균전압을 구하는 과정
  9. 2007/04/14 전압(Voltage)의 RMS값과 평균값(Average)을 구하는 공식

◀ PREV : [1] : NEXT ▶

 


JSP 개발을 위한 초고속 셋팅 따라하기

전공공부 2008/12/14 00:31

사용자 삽입 이미지


MS개발환경(Visual Studio)은 개발하기에 참으로 편하게 되어있다.

그냥 비주얼 스튜디오만 설치하면 끝이다.

또한 PHP개발환경 또한 구축하기가 쉽다.

APM(Apach PHP Mysql) 같은경우 자동으로 설치되어 그저 실행만 한뒤에 파일만 옮겨놓으면 된다.

하지만 JSP개발환경 같은경우에는 아직 한큐에 해결되는 프로그램은 없고

소소한 설정이 초보자들의 접근을 차단해버리기 일수이다.

하지만 Java SDK EE + Tomcat + Eclipse 조합이라면 비주얼 스튜디오 만큼이나 쾌적한 개발환경으로 JSP를 접할수 있다. 물론 DB같은경우에는 추가적으로 작업이 필요하지만...

어쨋거나 설치를 시작해보자.

제일 우선으로 Java SDK SE버전을 설치 한다.

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u11-oth-JPR@CDS-CDS_Developer

여기에 접속해서 JDK를 다운받아 설치한다.

사용자 삽입 이미지

사용자 삽입 이미지


설치가 끝나면 제일 처음에 할일은 PATH를 지정하는 일이다.

C:\Program Files\Java 폴더를 확인해봐야겠지만 아마도 저버전을 설치했다면 경로가

C:\Program Files\Java\jdk1.6.0_11\bin 이렇게 되어있을것이다.

내컴퓨터 - 속성

사용자 삽입 이미지

사용자 삽입 이미지

사용자 삽입 이미지
사용자 삽입 이미지

저런 순서로 하면 Path 설정이 끝나는데 Path입력시 주의할것이

기존에 입력된것 뒷편에 ; (세미콜론) 을 추가한뒤에 경로를 입력해야 한다.

설정후 확인, 확인, 확인으로 빠저나간뒤 제데로 설정되었는지 확인하기 위해 커맨드로 확인한다.

커맨드 창을 띄운뒤에 아무 경로에서나 javac 를 입력했을때 자바컴파일러가 실행되는지 확인후 실행이된다면 우선 Java SDK는 설치성공이다.

사용자 삽입 이미지

이제 Java SDK 설치를 끝냈으니 다음 Tomcat을 설치할 차례이다.

사용자 삽입 이미지

참고로 내가 아는 방법은 Tomcat 5.x버전기준이기 때문에 5.x 를 다운받는다.

http://tomcat.apache.org/download-55.cgi 이 페이지로 들어가면 다운받을수 있는데

그냥 다음을 클릭해서 다운받아도 된다.

http://mirror.korea.ac.kr/apache/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip

우선 설치 파일이 아니라 압축 파일이고 별도의 설치는 필요 없으므로 압축을 풀되

편하도록 C:\tomcat 폴더에 설치하도록 하자.

Tomcat은 간단히 설치를 끝냈고, 마지막으로 이클립스만 설치하면 된다.

사용자 삽입 이미지

이클립스 홈피(http://www.eclipse.org/downloads)에 접속해서 받으면되는데, JSP를 위한 개발이므로

Eclipse IDE for Java EE Developers 버전을 다운받도록 한다.

그냥 간단히 다음 링크를 클릭하도록 하자.

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR1/eclipse-jee-ganymede-SR1-win32.zip&url=http://ftp.daum.net/eclipse/technology/epp/downloads/release/ganymede/SR1/eclipse-jee-ganymede-SR1-win32.zip&mirror_id=441

이것 또한 설치 버전이 아니므로 그냥 압축을 풀어서 간단히 C:\Eclipse 폴더에 넣도록하자.

자 이제 거의 대부분의 셋팅이 완료 되고 있다.

마지막으로 이클립스 셋팅만 마치면 모든게 끝인데 우선 이클립스를 실행하자.

But. 가끔 이런 에러메세지가 뜨는 경우가 있다.

JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersio=1.5
-Xms40m
-Xmx512M
-XX:MaxPermSize=256M
....

사용자 삽입 이미지

이런 에러에 대한 원인은 다양하게 이야기 되고 있는데 해결방법중 한가지는 다음과 같다.

이클립스 폴더로 이동후 eclipse.ini파일을 열은뒤 아래의 위치에 있는 -Xmx512m 부분을 -Xmx256m 로 교체를 하면 문제없이 실행이 되곤 한다.

대부분의 경우에 해결이 되었다.

사용자 삽입 이미지

우선 에러가 안난다면 문제가 없지만..

어쨋거나 실행을 한뒤에 메뉴에서 Window- Preferences 에 들어간다.

사용자 삽입 이미지

Tomcat 서버랑 JRE환경을 설정해줘야 하는데

우선 아래와 같이 실행한다.

사용자 삽입 이미지

왼쪽 메뉴중에서 Server 항목의 Runtime Environment 눌러 오른쪽의 Add버튼을 누른다.

사용자 삽입 이미지

좀전에 설치한 Tomcat 5.5 버전을 고른뒤에 Next를 누른다.

사용자 삽입 이미지
그다음 Browse.. 를 누른뒤 Tomcat 설치 폴더를 지정해주고, JRE 하단을 눌러서 설치한 jre6을 골라준다.

그러면 셋팅이 끝났다.

그러면 마지막 테스트로

<body>
현재시간 : <%=new java.util.Date() %>
</body>

이런 코드를 입력후

Run - Run 으로 해서 브라우저를 띄우면

현재시간이 나온다.

그러면 셋팅 성공.

ㅊㅋㅊㅋ
myeva
2008/12/14 00:31 2008/12/14 00:31
top
TAG Eclipse, JSP, Tomcat, 따라하기, 셋팅


Trackback[트랙백] 0 : Comment[댓글] 0

Trackback Address :: http://skstar.net/blog/trackback/182

Write a comment


내가 지금 배웠고, 앞으로 더배울 전자회로 책

전공공부 2007/07/30 15:30

공업수학보다 계산이 간단하고, 전기회로 보다 이해하기가 훨 쉬운거 같다.

배우기 전에는 엄청 쫄아서 보다가, 1차 시험을 치고 나니 너무나도 예상외의 점수가

나오는 바람에 그때 부터 자신감을 가지고 공부를 했던 전자회로.

교과서 치고는 뭐 상당히 잘 되어 있는 책이라고 생각한다.

챕터 1부터 기초 부분, MOSFET, Bipolar 트랜지스터, Frequency Response 등 7장까지 배웠는데, 7장 내용인 Frequency Respose 내용은 배우긴 햇는데 정말 모르겠다.

다시 복습좀 하던지 해야지 ㅡ.ㅡ;;;

아래는 이책 정보

Microelectronic Circuit Analysis and Design

사용자 삽입 이미지

By Donald Neamen
Date February 21, 2006
ISBN 007328596X / 9780073285962

ISBN 0071254439(International Version)

Overview
This junior level electronics text provides a foundation for analyzing and designing analog and digital electronic circuits. Numerous new pedagogical features continue the tradition of providing an accessible approach to learning through clear writing and real-world pedagogy. The third edition includes numerous design examples, a new Design Application feature, problem solving technique pointers, Test Your Understanding questions at the end of every section, and chapter summary checkpoints to reinforce learning. The author, Don Neamen, has many years of experience as an Engineering Educator. His experience shines through each chapter of the book, which retains a design focus supported by rich, realistic examples and practical rules of thumb. The Third Edition continues to offer the same hallmark features that made the previous editions such a success. Extensive Pedagogy: An Introduction at the beginning of each chapter links the new chapter to the material presented in previous chapters. The objectives of the chapter are then presented in the Preview section and reinforced at the beginning of each chapter subsection. Test Your Understanding Exercise Problems with provided answers have all been updated. New Design Applications are included at the ends of chapters. These applications lead students through the design and development of an electronic thermometer. Each specific design ties into the objectives of the chapter. Specific Design Problems and Examples are highlighted throughout the book, along with design pointers which help students tackle tricky design issues.

Table of contents
Microelectronics: Circuit Analysis and Design
Prologue I: Prologue to Electronics
Brief History
Passive and Active Devices
Electronic Circuits
Discrete and Integrated Circuits
Analog and Digital Signals
Notation
Summary
Part I: Semiconductor Devices and Basic Applications
Chapter 1: Semiconductor Materials and Diodes
1.0 Preview
1.1 Semiconductor Materials and Properties
1.2 The pn Junction
1.3 Diode Circuits: DC Analysis and Models
1.4 Diode Circuits: AC Equivalent Circuit
1.5 Other Diode Types
1.6 Design Application
1.7 Summary
Problems
Chapter 2: Diode Circuits
2.0 Preview
2.1 Rectifier Circuits
2.2 Zener Diode Circuits
2.3 Clipper and Clamper Circuits
2.4 Multiple Diode Circuits
2.5 Photodiode and LED Circuits
2.6 Summary
Problems
Chapter 3: The Field-Effect Transistor
3.0 Preview
3.1 Basic Bipolar Junction Transistor
3.2 DC Analysis of Transistor Circuits
3.3 Basic Transistor Applications
3.4 Bipolar Transistor Biasing
3.5 Multistage Circuits
3.6 Design Application
3.7 Summary
Problems
Chapter 4: Basic FET Amplifiers
4.0 Preview
4.1 Analog Signals and Linear Amplifiers
4.2 The Bipolar Linear Amplifier
4.3 Basic Transistor Amplifier Configurations
4.4 Common-Emitter Amplifiers
4.5 AC Load Line Analysis
4.6 Common-Collector (Emitter-Follower) Amplifier
4.7 Common-Base Amplifier
4.8 The Three Basic Amplifiers: Summary and Comparison
4.9 Multistage Amplifiers
4.10 Power Considerations
4.11 Design Application
4.12 Summary
Problems
Chapter 5: Bipolar Junction Transistor
5.0 Preview
5.1 MOS Field-Effect Transistor
5.2 MOSFET DC Circuit Analysis
5.3 Basic MOSFET Applications: Switch, Digital Logic Gate, and Amplifier
5.4 Constant Current Biasing
5.5 Multistage MOSFET Circuits
5.6 Junction Field-Effect Transistors
5.7 Design Application
5.8 Summary
Problems
Chapter 6: Basic BJT Amplifiers
6.0 Preview
6.1 The MOSFET Amplifier
6.2 Basic Transistor Amplifier Configurations
6.3 The Common-Source Amplifier
6.4 The Source-Follower Amplifier
6.5 The Common-Gate Amplifier
6.6 The Three Basic Amplifier Configurations: Summary and Comparison
6.7 Single-Stage Integrated Circuit MOSFET Amplifiers
6.8 Multistage Amplifiers
6.9 Basic JFET Amplifiers
6.10 Summary
Problems
Chapter 7: Frequency Response
7.0 Preview
7.1 Amplifier Frequency Response
7.2 System Transfer Functions
7.3 Frequency Response: Transistor Amplifiers with Circuit Capacitors
7.4 Frequency Response: Bipolar Transistor
7.5 Frequency Response: The FET
7.6 High-Frequency Response Transistor Circuits
7.7 Summary
Problems
Chapter 8: Output Stages and Power Amplifiers
8.0 Preview
8.1 Power Amplifiers
8.2 Power Transistors
8.3 Classes of Amplifiers
8.4 Class-A Power Amplifier
8.5 Class-AB Push-Pull Complementary Output Stages
8.6 Summary
Problems
Prologue II: Prologue to Electronic Design
Preview
Design Approach
System Design
Electronic Design
Conclusion
Part II: Analog Electronics
Chapter 9: Ideal Operational Amplifiers and Op-Amp Circuits
9.0 Preview
9.1 The Operational Amplifier
9.2 Inverting Amplifier
9.3 Summing Amplifier
9.4 Noninverting Amplifier
9.5 Op-Amp Applications
9.6 Operational Transconductance Amplifiers
9.7 Op-Amp Circuit Design
9.8 Design Application
9.9 Summary
Problems
Chapter 10: Integrated Circuit Biasing and Active Loads
10.0 Preview
10.1 Bipolar Transistor Current Sources
10.2 FET Current Sources
10.3 Circuits and Active Loads
10.4 Small-Signal Analysis: Active Load Circuits
10.5 Summary
Problems
Chapter 11: Differential and Multistage Amplifiers
11.0 Preview
11.1 The Differential Amplifier
11.2 Basic BJT Differential Pair
11.3 Basic FET Differential Pair
11.4 Differential Amplifier with Active Load
11.5 BiCMOS Circuits
11.6 Gain Stage and Simple Output Stage
11.7 Simplified BJT Operational Amplifier Stage
11.8 Diff-Amp Frequency Response
11.9 Summary
Problems
Chapter 12: Feedback and Stability
12.0 Preview
12.1 Introduction to Feedback
12.2 Basic BJT Differential Pair
12.3 Basic FET Differential Pair
12.4 Voltage (Series-Shunt) Amplifier
12.5 Current (Shunt-Series) Amplifier
12.6 Transconductance (Series-Series) Amplifier
12.7 Transresistance (Shunt-Shunt) Amplifier
12.8 Loop Gain
12.9 Stability of the Feedback Circuit
12.10 Frequency Compensation
12.11 Summary
Problems
Chapter 13: Operational Amplifier Circuits
13.0 Preview
13.1 General Op-Amp Design
13.2 A Bipolar Operational Amplifier Circuit
13.3 CMOS Operational Amplifier Circuits
13.4 BiCMOS Operational Amplifier Circuits
13.5 JFET Operational Amplifier Circuits
13.6 Summary
Problems
Chapter 14: Nonideal Effects in Operational Amplifier Circuits
14.0 Preview
14.1 Practical Op-Amp Parameters
14.2 Finite Open-Loop Gain
14.3 Frequency Response
14.4 Offset Voltage
14.5 Input Bias Current
14.6 Additional Nonideal Effects
14.7 Summary
Problems
Chapter 15: Applications and Design of Integrated Circuits
15.0 Preview
15.1 Active Filters
15.2 Oscillators
15.3 Schmitt Trigger Circuits
15.4 Nonsinusoidal Oscillators and Timing Circuits
15.5 Integrated Circuit Power Amplifiers
15.6 Voltage Regulators
15.7 Summary
Problems
Prologue III: Prologue to Digital Electronics
Introduction
Logic Functions and Logic Gates
Logic Levels
Noise Margin
Propagation Delay Times and Switching Times
Summary
Part III: Digital Electronics
Chapter 16: MOSFET Digital Circuits
16.0 Preview
16.1 NMOS Inverters
16.2 NMOS Logic Circuits
16.3 CMOS Inverter
16.4 CMOS Logic Circuits
16.5 Clocked CMOS Logic Circuits
16.6 Transmission Gates
16.7 Sequential Logic Circuits
16.8 Memories: Classification and Architectures
16.9 RAM Memory Cells
16.10 Read-Only Memory
16.11 D/A Converters
16.12 A/D Converters
16.13 Summary
Problems
Chapter 17: Bipolar Digital Circuits
17.0 Preview
17.1 Emitter-Coupled Logic (ECL)
17.2 Modified ECL Circuit Configurations
17.3 Schottky Transistor-Transistor Logic
17.4 BiCMOS Digital Circuits
17.5 Summary
Problems
Appendices

myeva
2007/07/30 15:30 2007/07/30 15:30
top
TAG Microelectronics, Neamen, 전자회로


Trackback[트랙백] 0 : Comment[댓글] 0

Trackback Address :: http://skstar.net/blog/trackback/160

Write a comment


D-Flip Flop(플립플롭)을 Verilog로 구현한 코드

전공공부 2007/05/25 05:04
Flip Flop(플립플롭)과 Latch(래치)는 1 또는 0을 저장 하는 소자이다.

Latch는 값이 변화하는 즉시 즉시 작동되는 소자이고, FlipFlop은 클럭에 의해서만 작동되는 소자이다.

D-Flip Flop을 Verilog HDL Behavior모델로 작성한 코드는 아래와 같다.

module DPETflipflop (D,CLK,PR,CLR,Q,iQ);
   output Q,iQ;
   input D,CLK,CLR,PR;
   reg Q,iQ;
   always @ (posedge CLK or negedge CLR or negedge PR)
   if((~CLR)&(~PR))
      begin
         Q = 1'b1;
         iQ = 1'b1;
      end
    else if(CLR&(~PR))
      begin
         Q = 1'b1;
         iQ = 1'b0;
      end
    else if((~CLR)&PR)
      begin
         Q = 1'b0;
         iQ = 1'b1;
      end
    else if(CLK&PR&CLR)
     begin
         Q = D;
        iQ = ~Q;
     end
endmodule


D-Flip Flop 작동되는 기준은 아래의 Truth Table이다.

-------------------------------------------------------
                INPUT                               |       OUTPUT
   Preset       Clear      Clock       D      |       Q        Q'
-------------------------------------------------------
       0             1            X          X       |      1         0
       1             0            X          X       |      0         1
       0             0            X          X       |      1         1
-------------------------------------------------------
       1             1            ↑          0       |      0         1
       1             1            ↑          1       |      1         0
       1             1            0           X      |      No Change
-------------------------------------------------------

Preset 과 Clear가 1,1 일 경우에만 클럭에 의해 작동되고
Preset과 Celar가 1,1이 아닐경우에는 각각 표에 따라 값이 출력된다.

이것이 Asynchronous(비동기) Preset 과 Clear를 가진 D-Flip Flop이다.
myeva
2007/05/25 05:04 2007/05/25 05:04
top
TAG D-FlipFlop, Verilog HDL, 래치, 플립플롭


Trackback[트랙백] 0 : Comment[댓글] 0

Trackback Address :: http://skstar.net/blog/trackback/155

Write a comment


4bit Adder and Subtractor(4비트 덧셈뺄셈기) Verilog HDL 코드

전공공부 2007/05/13 17:54
module Four_bit_adder_subtractor(S,C4,A,B,M);
    input [3:0] A,B;
    input M;
    output [3:0] S;
    output C4;
    reg [3:0]S;
    reg C4;
    always @ (A or B or M)
    begin
      if(M)
        begin
          S = A - B;
   if( A < B)
      C4 = 1'b0;
   else
            C4 = 1'b1;
        end
      else
        begin
          S = A + B;
          if( A+B > 5'b01111 )
            C4 = 1'b1;
          else
            C4 = 1'b0;
        end
    end
endmodule

위 코드는 4비트의 뺄셈과 덧셈이 동시에 가능한 모듈을 Verilog HDL코드로 작성한것으로

Behavior Model(동작수준모델)로 작성한것.

A와 B가 피 연산자 이고 결과는 4비트 S에 저장된다.

모드인 M에 따라서 덧셈 또는 뺼셈이 수행되는데, M이 1이면 뺄셈, M이 0이면 덧셈을 수행한다.

Always구문 안을 보자면

A 또는 B 또는 M이 변화할때 Always안의 블럭을 항상 수행하는데

M이 1이면 S = A - B를수행한다.

이때 A가 B보다 작으면 음수 결과가 나므로 Carry Out은 0 A가 B보다 크면 양수이므로 Carry Out 은 1로 나온다.

M이 0이면 S = A + B를 수행하는데, A와 B의 합이 4bit 1111를 넘어가면 Carry Out은 1

A와 B의 합이 4bit 1111보다 같거나 작으면 Carry Out은 0이다.
myeva
2007/05/13 17:54 2007/05/13 17:54
top
TAG Adder, Subtractor, Verilog HDL


Trackback[트랙백] 0 : Comment[댓글] 0

Trackback Address :: http://skstar.net/blog/trackback/154

Write a comment


Verilog HDL을 이용해서 4bit Full Adder(덧셈기)를 구현한 코드

전공공부 2007/05/09 12:31

아래 코드는 4bit Full Adder(덧셈기)를 표현한것으로

C0는 외부에서 들어오는 Carry 이고, 4bit A와 4bit B를 더해서

결과를 S, 거기에서 생기는 Carry를 C4에 넣는 코드이다.

아래 코드는 Behavior Level 로 작성한 코드이다.

Gate Level로 표현된 자료는 인터넷에 찾으면 된다.

module bit_adder(S,C4,A,B,C0);
  input [3:0]A,B;
  input C0;
  output [3:0]S;
  output C4;

  reg [3:0]S;
  reg C4;

  always @ (A or B or C0)
  begin
      S = A + B + C0;
      if ( A+B+C0 > 5'b01111)
        C4 = 1'b1;
      else
        C4 = 1'b0;
  end
endmodule


코드를 설명 하자면, A , B 또는 C0가 변경이 되면 아래에 있는 begin-end블럭을 실행

하게 되는데, A와 B 그리고 C0를 결과 S에 저장하고

그 셋 결과가 4 bit 1111보다 큰 결과가 나오면 Carry Out인 C4를 1로 출력하고

그보다 작으면 Carry Out인 C4를 0으로 출력하게 된다.
myeva
2007/05/09 12:31 2007/05/09 12:31
top
TAG Full Adder, Verilog HDL


Trackback[트랙백] 0 : Comment[댓글] 0

Trackback Address :: http://skstar.net/blog/trackback/153

Write a comment


Excess-3 변환기(컨버터) Verilog(베릴로그) 소스

전공공부 2007/05/02 02:48
Excess-3 Code(Gray Code)란 0~9까지의 BCD코드를 3더한 순서로 나열한것으로

0011,0100,0110....,1100 으로 나오는 것이다.

다른말로는 BCD to Excess 3 Code Converter라고도 하는데 이것을

Verilog HDL을 이용해 3가지 방법 즉,
1. Gate Level Description(게이트 수준기술)
2. Dataflow Description(데이터플로우 수준기술)
3. Behavioral Description(동작 수준기술)
로 나타내면 다음과 같이 코딩할수 있다.

1. Gate Level Description

module BinaryToGray(A,B,C,D,w,x,y,z);
    input A,B,C,D;
    output w,x,y,z;
    wire w1,w2,w3,w4,w5,w6,w7;
    not g1(z,D);
    and g2(w1,D,C);
    or g3(w2,D,C);
    not g4(w3,B);
    not g5(w7,w2);
    or g6(y,w1,w7);
    and g7(w4,w7,B);
    and g8(w5,w2,w3);
    and g9(w6,w2,B);
    or g10(x,w4,w5);
    or g11(w,w6,A);
endmodule


2. Dataflow Description

module BinaryToGray(A,B,C,D,w,x,y,z);
    input A,B,C,D;
  output w,x,y,z;
     assign z = ~D,
            y = (D&C)|(~(C|D)),
            x = ((~(C|D))&B) | ((C|D)&(~B)),
            w = ((C|D)&B)|A;
endmodule


3. Behavioral Description

module BinaryToGray(A,B,C,D,w,x,y,z);
  input A,B,C,D;
  output w,x,y,z;
  reg [3:0] E;
  wire [3:0] state;
  parameter S0=4'b0000, S1=4'b0001, S2=4'b0010, S3=4'b0011, S4=4'b0100,
             S5=4'b0101, S6=4'b0110, S7=4'b0111, S8=8'b1000, S9=4'b1001;
  assign w=E[3], x=E[2], y=E[1], z=E[0];
  assign state[3] = A, state[2] = B, state[1] = C, state[0] = D;
  always @ (state)
  case(state)
     S0 : E = 4'b0011;
     S1 : E = 4'b0100;
     S2 : E = 4'b0101;
     S3 : E = 4'b0110;
     S4 : E = 4'b0111;
     S5 : E = 4'b1000;
     S6 : E = 4'b1001;
     S7 : E = 4'b1010;
     S8 : E = 4'b1011;
     S9 : E = 4'b1100;
     default : E = 4'b0000;
  endcase
endmodule

이렇게 가능하다.

이것을 보면 동작수준 모델이 항상 최선의 선택이 아님을 알수있다.
때로는 다른방법이 더 짧게 코딩이 될수도 있다.
myeva
2007/05/02 02:48 2007/05/02 02:48
top
TAG BCD, Behavioral, Dataflow, Excess-3, Gatelevel, GrayCode, Verilog, Verilog HDL


Trackback[트랙백] 0 : Comment[댓글] 0

Trackback Address :: http://skstar.net/blog/trackback/152

Write a comment


전압 파형이 삼각파(Triangle-wave)일때 RMS값과 평균전압을 구하는 과정

전공공부 2007/04/14 18:43
입력 파형이 아래와 같다고 가정한다.



입력 파형이 삼각파(Triangle-Wave)이고, 피크전압(Peak-Voltage)가 Vpk이다.

▶RMS계산법
입력 파형이 삼각파라면 주기의 1/4만으로도 나머지 3/4의 RMS값이 나오기 때문에, 계산의 법위를 0도에서 90도 까지 놓고 계산을 하면 된다.












▶평균값 계산법

평균값도 RMS와 같이 범위를 0도에서 90로 놓고 계산하면 된다.





myeva
2007/04/14 18:43 2007/04/14 18:43
top
TAG TriangleWave, 교류, 삼각파, 전기회로, 전자회로, 평균값, 평균전압


Trackback[트랙백] 0 : Comment[댓글] 0

Trackback Address :: http://skstar.net/blog/trackback/146

Write a comment


전압파형이 사인웨이브(Sine-Wave)일때 RMS와 평균전압을 구하는 과정

전공공부 2007/04/14 17:56

입력 전압 파형을 아래와 같이 가정한다.




입력 파형이 Sine-Wave이며 피크 전압(Peak-Voltage)가 Vpk이다.

▶RMS계산법
입력 파형이 사인웨이브 라면 주기의 1/4 만으로 가지고도 나머지 3/4의 RMS값이 나오기 때문에, 계산의 범위를 0도 에서 pi/2(90º)까지 놓고 계산을 하면 된다.














▶평균값 계산법
평균값도 RMS값과 같이 범위를 0º에서90º까지로 놓고 계산하면 된다.







myeva
2007/04/14 17:56 2007/04/14 17:56
top
TAG RMS, SineWave, 교류, 사인파, 전기회로, 전자회로, 평균값, 평균전압


Trackback[트랙백] 0 : Comment[댓글] 0

Trackback Address :: http://skstar.net/blog/trackback/145

Write a comment


전압(Voltage)의 RMS값과 평균값(Average)을 구하는 공식

전공공부 2007/04/14 17:15

전기회로나 전자회로시간에 전압의 평균값이나 RMS값을 구하는 경우가 많았는데,

막상 찾으려고 책 뒤지려니까 얼마나 귀찮은지 ㅎㅎㅎ


◆전압의 RMS를 구하는 공식

사용자 삽입 이미지



◆전압의 평균값(Average)을 구하는 공식
사용자 삽입 이미지

참고로 사인파(Sine-Wave)의 RMS값과 평균값을 구하는 공식은
사용자 삽입 이미지

사용자 삽입 이미지

사인파에서 RMS값은 피크 전압(Peak Voltage)을 루트2로 나누어 주면 되고, 평균값은 피크 전압을 파이로 나눠주면 된다.
myeva
2007/04/14 17:15 2007/04/14 17:15
top
TAG RMS, 전기회로, 전자회로, 평균전압


Trackback[트랙백] 0 : Comment[댓글] 0

Trackback Address :: http://skstar.net/blog/trackback/144

Write a comment


◀ PREV : [1] : NEXT ▶

 


관리자 : 새글쓰기
내가 하는 삽질은 활용이지! 활용이라는것이 어떤건지 보여주겠어~

카테고리

전체 (180)
전공공부 (9)
윈도우활용 (24)
동영상 (4)
휴대기기 (20)
휴대폰 (17)
인터넷 (59)
구글(Google) (3)
도메인(Domain) (26)
웹호스팅(Hosting) (6)
태터툴즈(Tattertools) (11)
신기한서비스 (2)
워드프레스(WordPress) (0)
지름신 (3)
Photos (0)
Macro (0)
일기장 (21)
음악과 함께 (2)
In Houston (3)
닌텐도 DS(NDS) (29)
라디오 (1)
돈이야기 (9)

태그목록

  • 월드컵뉴스 Acekard+ CMA통장 커맨드창 네이버 메일 파나소닉 쿨러 LLLL.com 구글댓글 웨스턴유니온 피해보상 스카이디지털 NDSL GMA 무비트레일러 이벤트 이재훈 북미판 커맨드앤퀀커3 닷컴 공짜

최근에 올라온 글

  • 옥션 이벤트 - 1회용 손난로(.... (1)
  • JSP 개발을 위한 초고속 셋팅....
  • 웨스턴 유니온(Western Union.... (1)
  • 한국은행이 7월30일에 발표한....
  • 오늘(7월30일) 현물,선물,옵....

최근에 달린 댓글

  • 역시 님은 옥션매니아 엉엉.... 피 2008
  • 늦었지만 여기까지 보냅니다.. myeva 2008
  • 저두 유재석나오느너 너무너.... 잉~ 2008
  • 관리자만 볼 수 있는 댓글입.... 비밀방문자 2008
  • 국민은행, 부산은행, 기업은.... kikiwo 2008

최근에 받은 트랙백

  • 실망스런 닷네임...
    삽질매니아 2008
  • 도메인 및 호스팅 업체인 X네....
    삽질매니아 2008
  • Gmail 알리미.
    블로그를 살리자~!!! 2008
  • 고객실망도 1위 닷네임코리아.
    RERIC.COM 2007
  • 네이버 미수녀?.
    5월의 작은 선인장 2006

글 보관함

  • 2008/12 (2)
  • 2008/08 (1)
  • 2008/07 (4)
  • 2008/05 (2)
  • 2008/04 (2)

달력

«   2009/01   »
일 월 화 수 목 금 토
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

링크

  • DCinside 주식갤러리.
  • 비누넷.
  • 우울한 피.
  • 테터툴즈.

244

180