Added test assemblies for assignment 3 / pipelining

This commit is contained in:
riley committed 2026-11-04 15:42:22 +11:00
1 parent 8f9ec010ac
commit ef6bd3aec9
6 files changed
+291

No files matched your search

@@ -0,0 +1,18 @@
01084023
25090007
ad090000
8d0a0000
012a5821
012b6022
212d0003
018d7020
012d8024
012d8825
012d9026
012d9827
018ea02a
018ea82b
25080001
010db02b
12d4fffd
12d6ffff
@@ -0,0 +1,51 @@
// $File: NewcastleUniversity/ELEC4720/2026s2/src/Code/Assignment/Ass-03-HazardsDemo.txt $
// $Date: 2026-10-29 14:44:32 +1100 (Thu, 29 Oct 2026) $
// $Revision: 2531 $
// $Author: Peter $
//
// Course: ELEC4720(2026s2) Programmable Logic Design
// School: Engineering
// University: The University of Newcastle
// Address: CALLAGHAN NSW 2308 Australia
//
// Author: Dr Peter Stepien
// Email: peter.stepien@newcastle.edu.au
// Copyright: 2026
// Assignment 3 Demonstration Program (with hazards)
// main:
// Initialise some registers
01084023 // subu $t0, $t0, $t0
25090007 // addiu $t1, $t0, 7
// Memory operations
ad090000 // sw $t1, 0x0000($t0)
8d0a0000 // lw $t2, 0x0000($t0)
// Remaining arithmetic
012a5821 // addu $t3, $t1, $t2
012b6022 // sub $t4, $t1, $t3
212d0003 // addi $t5, $t1, 3
018d7020 // add $t6, $t4, $t5
// Logical
012d8024 // and $s0, $t1, $t5
012d8825 // or $s1, $t1, $t5
012d9026 // xor $s2, $t1, $t5
012d9827 // nor $s3, $t1, $t5
// Comparison
018ea02a // slt $s4, $t4, $t6
018ea82b // sltu $s5, $t4, $t6
// Loop to test branch
// loop:
25080001 // addiu $t0, $t0, 1
010db02b // sltu $s6, $t0, $t5
12d4fffd // beq $s6, $s4, loop
// Endless loop at end of program (FPGA)
// finish:
12d6ffff // beq $s6, $s6, finish
@@ -0,0 +1,34 @@
01084023
01294823
014a5023
016b5823
25090007
ad090000
014a5023
016b5823
018c6023
8d0a0000
016b5823
018c6023
01ad6823
012a5821
018c6023
01ad6823
01ce7023
012b6022
212d0003
01ce7023
01ef7823
02108023
018d7020
012d8024
012d8825
012d9026
012d9827
018ea02a
018ea82b
1211ffff
1211fffe
1211fffd
1211fffc
12d6ffff
@@ -0,0 +1,50 @@
// $File: NewcastleUniversity/ELEC4720/2026s2/src/Code/Assignment/Ass-03-NoHazardsDemo.txt $
// $Date: 2026-10-29 14:44:32 +1100 (Thu, 29 Oct 2026) $
// $Revision: 2531 $
// $Author: Peter $
//
// Course: ELEC4720(2026s2) Programmable Logic Design
// School: Engineering
// University: The University of Newcastle
// Address: CALLAGHAN NSW 2308 Australia
//
// Author: Dr Peter Stepien
// Email: peter.stepien@newcastle.edu.au
// Copyright: 2026
// Assignment 3 Demonstration Program (without hazards)
01084023
01294823
014a5023
016b5823
25090007
ad090000
014a5023
016b5823
018c6023
8d0a0000
016b5823
018c6023
01ad6823
012a5821
018c6023
01ad6823
01ce7023
012b6022
212d0003
01ce7023
01ef7823
02108023
018d7020
012d8024
012d8825
012d9026
012d9827
018ea02a
018ea82b
1211ffff
1211fffe
1211fffd
1211fffc
12d6ffff