//HDL Example 7-1 // //Read and write operations of memory. //Memory size is 64 words of 4 bits each. module.

Slides:



Advertisements
Similar presentations
//HDL Example 8-2 // //RTL description of design example (Fig.8-9) module Example_RTL (S,CLK,Clr,E,F,A);
Advertisements

Verilog in transistor level using Microwind
CDA 3100 Recitation Week 11.
//HDL Example 4-10 // //Gate-level description of circuit of Fig. 4-2 module analysis (A,B,C,F1,F2); input.
Verilog Overview. University of Jordan Computer Engineering Department CPE 439: Computer Design Lab.
Verilog Modules for Common Digital Functions
CPEN Digital System Design
Memory Section 7.2. Types of Memories Definitions – Write: store new information into memory – Read: transfer stored information out of memory Random-Access.
COE 405 Design and Synthesis of DataPath Controllers Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals.
//HDL Example 6-1 // //Behavioral description of //Universal shift register // Fig. 6-7 and Table 6-3 module shftreg.
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
Pulse-Width Modulated DAC
CS 140 Lecture 12 Professor CK Cheng 11/07/02. Part III - Standard Modules Decoder, Encoder, Mux, DeMux, Shifter, Adder, Multiplexer Interconnect: Decoder,
Ring Counter Discussion 11.3 Example 32.
Arbitrary Waveform Discussion 12.2 Example 34. Recall Divide-by-8 Counter Use q2, q1, q0 as inputs to a combinational circuit to produce an arbitrary.
Counters Discussion 12.1 Example 33. Counters 3-Bit, Divide-by-8 Counter 3-Bit Behavioral Counter in Verilog Modulo-5 Counter An N-Bit Counter.
2-to-1 Multiplexer: if Statement Discussion D7.1 Example 4.
Spring 2002EECS150 - Lec19-memory Page 1 EECS150 - Digital Design Lecture 18 - Memory April 4, 2002 John Wawrzynek.
//HDL Example 3-3 // //Stimulus for simple circuit module stimcrct; reg A,B,C; wire x,y; circuit_with_delay swd(A,B,C,x,y);
EECS 470 Cache and Memory Systems Lecture 14 Coverage: Chapter 5.
COE 202 Introduction to Verilog Computer Engineering Department College of Computer Sciences and Engineering King Fahd University of Petroleum and Minerals.
Registers and Shift Registers Discussion D8.2. D Flip-Flop X 0 Q 0 ~Q 0 D CLK Q ~Q D gets latched to Q on the rising edge of the clock. Positive.
Generic Multiplexers: Parameters Discussion D7.5 Example 8.
Lessons from last lab: 1.Many had the “# skipping” problem 2.Most assumed there was something wrong with their code 3.How does one check their code? 4.SIMULATE!!
D Flip-Flops in Verilog Discussion 10.3 Example 27.
Quad 2-to-1 Multiplexer Discussion D7.4 Example 7.
Engineering 100 Section 250 Combinational Logic -- Examples 9/13/2010.
module compute_next_state( input wire [2:0] state, output reg [2:0] next_state); begin next_state = state_reset; case (state) state_reset:
Spring 2002EECS150 - Lec19-memory Page 1 EECS150 - Digital Design Lecture 20 - Memory April 4&9, 2002 John Wawrzynek.
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
Digital Electronics Chapter 7 Memory and Programmable Logic.
B10010 Behavioral Verilog ENGR xD52 Eric VanWyk Fall 2012.
Department of Communication Engineering, NCTU 1 Unit 5 Programmable Logic and Storage Devices – RAMs and FPGAs.
Main Project : Simple Processor Mini-Project : 3-bit binary counter (using 7400 series) Memory By Oluwayomi B. Adamo.
1 Building Verilog Models for the MIPS Processor.
7. Peripherals 7.1 Introduction of peripheral devices Computer Studies (AL)
1 ALU ports can get input from any of the two registers ALU can perform one of the eight operations Shift unit can perform one of the four possible types.
M.Mohajjel. Structured Procedures Two basic structured procedure statements always initial All behavioral statements appear only inside these blocks Each.
Chapter 8: Combinational Logic Modules Digital System Designs and Practices Using Verilog HDL and 2008~2010, John Wiley 8-1 Chapter 8: Combinational.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Introduction to FPGAs Getting Started with Xilinx.
Computer Organization
Types of format of data transfer
Supplement on Verilog FF circuit examples
Supplement on Verilog for Algorithm State Machine Chart
Main Project : Simple Processor Mini-Project : Vending Machine Memory
Verilog Modules for Common Digital Functions
Reg and Wire:.
Advance Skills TYWu.
Behavioral Modeling Structural modeling Behavioral modeling
Latches and Flip-flops
Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-I]
Pulse-Width Modulation (PWM)
332:437 Lecture 10 Verilog Language Details
332:437 Lecture 10 Verilog Language Details
Computer Architecture and Design Lecture 6
Computer Architecture
ESE 437: Sensors and Instrumentation
Registers and Counters
Chapter 7 Memory and Programmable Logic
Lecture 9. MIPS Processor Design – Decoding and Execution
Enhancing Data Path M 4-bit Reg X A L U
A register design with parallel load input
332:437 Lecture 10 Verilog Language Details
UNIT 6: Mixed-Type Description
The Verilog Hardware Description Language
Supplement on Verilog combinational circuit examples
Test Fixture Template module testfixture ; // data type declaration
Verilog HDL Basic Syntax
Registers and Counters
Presentation transcript:

//HDL Example 7-1 //----------------------------- //Read and write operations of memory. //Memory size is 64 words of 4 bits each. module memory (Enable,ReadWrite,Address,DataIn,DataOut); input Enable,ReadWrite; input [3:0] DataIn; input [5:0] Address; output [3:0] DataOut; reg [3:0] DataOut; reg [3:0] Mem [0:63]; //64 x 4 memory always @ (Enable or ReadWrite) if (Enable) if (ReadWrite) DataOut = Mem[Address]; //Read else Mem[Address] = DataIn; //Write else DataOut = 4'bz; //High impedance state endmodule